Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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% |