I have a sample dataset which have data for the year 2017 and 2018 approx 1KK total records.
When I use LY Measure the measure shows the LY for 2017 on 2018 and 2018's value on 2019.
But, there is no Data for 2019 in the dataset, then why the measure is showing 2018 LY data over 2019?
I'm confused, The LY Measure as I know should show data on the year which have data in it?
Solved! Go to Solution.
Hi @amitchandak ,
Well it's fixed, but I have one confusion why the last year measure previously shows data of 2018 over 2019 (if there is no data on that year it should not show that as I know).
But it was showing the 2018's Data is it correct or a error?
@MH3 , for LY usually we mobe dates a year back. So this measure has data. and both measures work independently, so any one of the measures that has a data; the visual table will show data.
Hi @amitchandak ,
As I have understood, The LY measure has 2018's Data in it, because the Sameperiodlastyear function calculates the value for the last year. as ithe dataset has the data till 2018.
So, the LY Measure should calculate data for 2017 over 2018 only.
But the NetAmt measure is just sum of two years of that's why it was showing the LY measure over 2019?
correct me if I am wrong
I agree with your idea, because the SAMEPERIODLASTYEAR() function is indeed used in conjunction with the calendar table, so the measure will also operate within the date range.
What’s more, if amitchandak’s reply has helped you to solve this problem, would you like to mark his reply as a solution so that others can learn from it too?
Thanks in advance!
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out new user group experience and if you are a leader please create your group!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Click here to read more about the July 2021 Updates