Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mayurpawar0305
Regular Visitor

I want to show two months data percentage and their difference

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 !

 

ProductDec'22Jan'23Diff
Mobile85.41%84.62%-0.78%
Laptop14.59%15.38%0.78%
AC3.11%3.22%0.11%
Tv3.02%3.20%0.18%
Bike1.62%1.73%0.11%
Computer1.01%1.10%0.08%
Car0.97%1.12%0.15%

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors