Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |