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
I have the following table structure.
And I have the following DAX measures.
1. Actual Sales = SUM(Sales[ACTSALES])
2. Budget Sales = SUM(Sales[BGTAMT])
3. Previous Year Sales = CALCULATE(
Solved! Go to Solution.
Hi,
Create a Calendar Table with calculated column formulas for Year, Month name and Month number. Sort the Month name column by the Month number. Create a relationship (Many to One and Single) from the Date column of the Data Table to the Date column of the Calendar Table. Drag Year, Month name to any visual only from the Calendar Table. Write this measure
Previous Year Sales = CALCULATE([Actual sales],SAMEPERIODLASTYEAR(Calendar[Date]))
Hope this helps.
Hi,
Create a Calendar Table with calculated column formulas for Year, Month name and Month number. Sort the Month name column by the Month number. Create a relationship (Many to One and Single) from the Date column of the Data Table to the Date column of the Calendar Table. Drag Year, Month name to any visual only from the Calendar Table. Write this measure
Previous Year Sales = CALCULATE([Actual sales],SAMEPERIODLASTYEAR(Calendar[Date]))
Hope this helps.
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 |
---|---|
90 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |