Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I have tried to create one DAX expression to calculate the total amount of one column based on the fiscal year. The report will show the comparison between the current fiscal year and the previous one, by month.
Following there are the two DAX expressions I have used to create the total calculation based on fiscal year, and the motive of why they are not working:
Has anyone ever faced this situation before, please?
Thanks in advance for your help!
Danilo Castro
Solved! Go to Solution.
It seems that you can use SAMEPERIODLASTYEAR Function directly.
SAMEPERIODLASTYEAR ( DimDate[FullDate] )
It seems that you can use SAMEPERIODLASTYEAR Function directly.
SAMEPERIODLASTYEAR ( DimDate[FullDate] )
Exactly! Changing the measure, the first one I've sent on my initial post, to use directly SAMEPERIODLASTYEAR works.
Solution:
CALCULATE (
SUM ( Customer[Income] ),
SAMEPERIODLASTYEAR (DimDate[FullDate]),
ALL ( DimDate )
)
Thank you very much for your help!
Danilo Castro
User | Count |
---|---|
104 | |
86 | |
78 | |
70 | |
70 |
User | Count |
---|---|
112 | |
100 | |
98 | |
72 | |
66 |