The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
In this case I need two months data percentage and after that their difference.
For that I have created a slicer by clicking on month it will result into selected month and previous month percentage.
"Months to Show =
Var Max_Date = MAX('Calendar' [Date])
Var PreviousDates = DATESINPERIOD ('Calender Months to Display'[Date],Max_Date,-2, MONTH)
Var Result =CALCULATE([Total_1 %],
REMOVEFILTERS('Calendar'),
KEEPFILTERS(PreviousDates),
USERELATIONSHIP ('Calendar' [Date], 'Calender Months to Display'[Date]))
Return Result"
This dax will giving two months data.
I need difference column in that. Please help me !
Product | Dec'22 | Jan'23 | Diff |
Mobile | 85.41% | 84.62% | -0.78% |
Laptop | 14.59% | 15.38% | 0.78% |
AC | 3.11% | 3.22% | 0.11% |
Tv | 3.02% | 3.20% | 0.18% |
Bike | 1.62% | 1.73% | 0.11% |
Computer | 1.01% | 1.10% | 0.08% |
Car | 0.97% | 1.12% | 0.15% |
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.