Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
83 | |
64 | |
60 | |
55 |
User | Count |
---|---|
183 | |
111 | |
105 | |
77 | |
70 |