Hello,
One of the Projects I am working on, I have to show YTD vs LYTD comparison on a bar chart. I calculated the YTD info using below formula:
JPM Account Segment YTD = TOTALYTD([JPM Account Segment], DateTable[Date],"09/30")
Please note that JPM Account Segment is a computed measure which gives me value as 396.18K
And then the JPM Account Segment YTD amount shows up as : 295.08K.
Now based on the YTD I calculated the LYTD using below DAX Formula.
JPM Account Segment LYTD = CALCULATE([JPM Account Segment LYTD], SAMEPERIODLASTYEAR(DateTable[Date]))
This gives me a value as 86.62K which should be 468.93K.
So the actual problem is the value I get using the LYTD is not the LYTD info but instead it sums up the value for entire fiscal year. The fiscal year runs from October 1st to September 30th which is why I used 9/30 as ending period date in the YTD formula. Can anyone help me correct the LYTD formula or correct me if I am doing anything wrong?