Hello,
I’m looking for some best practice or tip on how to best show period over period data where the current years data may be up to a week old. For example if I last synced data on Sept. 24th, and the current date is Sept. 29th, the current years data will of course only be Jan. 1st to Sept. 24th. For a proper comparison, I also want the previous 2 years of PoP data to show Jan. 1st to Sept. 24th, not the actual YTD of Sept. 29th. Does that make sense? Otherwise previous years will have more data and the comparison is not great.
So I have the “last sync date” for my data showing in a data label. For now I have a hacky solution where I get the dataLabel.container.innerText of that label and then set the view param end date using that value. The problem is I can’t find a way to do this as soon as the data label has a value. I have tried the “Data Changed” event, but innerText seems to be empty at that point still. And the “e” event has no relatedData (null), so I don’t see how I can get this value as soon as it’s loaded.
Any non-hacky solutions would be great, or just a way to get this data label value as soon as it’s loaded. I assumed “Data Changed” event would be the way, so I may just be checking the wrong things to find the new value.
Kevin