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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
8125551478
Frequent Visitor

Calculate % Difference

Hi,
Kindly sugest the below problem statement.

 calculate % Difference  with other countys (when compair total sales of india to other counters ,How much of % difference is coming )

 

CountryStateSales Amount
IndiaHyderabad150014
IndiaDelhi185405
IndiaMumbai220796
USGeorgia125405
USMexico145405
USNew York165405
UKEngland120245
UKScotland169875
UKIreland168472

 

 

2 REPLIES 2
rajulshah
Resident Rockstar
Resident Rockstar

@8125551478 

 

Please try following:

% Difference = 
VAR Sales =
    SUM ( '% Difference'[Sales Amount] )
VAR TotalSales =
    CALCULATE (
        SUM ( '% Difference'[Sales Amount] ),
        ALL ( '% Difference'[Country] )
    )
RETURN
    DIVIDE ( Sales, TotalSales )

 

I am getting the following results.

rajulshah_0-1678705428698.png

Hope this helps.

Thanks, I need % difference when compari to india total sales  (like 20% High when compaired to India total sales)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors