Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I want to create Prior YTD calculation so I made two versions of it. Not sure which one to go forward with because both are giving different answers ...
These are my two Prior YTD calculation both giving different answer
Hi @Anonymous ,
According to your description, I create a sample, and it get the incorrect result as yours.
Here's my solution, modify the Prior YTD formula to :
Previous Year YTD =
CALCULATE ( 'Table'[Current YTD], SAMEPERIODLASTYEAR ( 'Table'[Date] ) )
Here, directly reference to measure [Current YTD], not Net Sales.
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for the reply, I have few more confusions.
1. so my date table has a YTD flag , so if I switch on the flag the calculation looks different. but the total value of both way of calculating is the same.
2. In the similar way my YOY growth and variance should also have a different calculation ?
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |