Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I have a table with dates and an amount column.
I want to create a dax measure that shows me the following:
1) Measure One: Previous Years = Sum of Amount for ALL dates before current year
2) Measure 2: Current Year = Sum of Amount for ALL dates FOR the current year.
I want it to be dynamic so next year, the currennt year will become previous year. etc
I THINK i have it covered for current year, (calculated YTD) but I can't find the function for summing up ALL previous years not just the most recent one.
Solved! Go to Solution.
Hi Joseph,
Please try below DAX
CurrentYearSales/AllpreviousYearSales =
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
N V Durga Prasad
Hi Joseph,
Please try below DAX
CurrentYearSales/AllpreviousYearSales =
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
N V Durga Prasad
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
87 | |
67 | |
49 |
User | Count |
---|---|
135 | |
113 | |
100 | |
68 | |
67 |