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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

CALCULATE % not showing properly

Hello everone.

 

I need to show Sales % by countries. The sales % was showed properly before i add Currency Code. After i add Currency code column Sales % looks by every currency like in this photo. 

33.png

 

i used this DAX expression : 

 

Sales % by country = DIVIDE(
SUM(Book_Settles[Sales_Amount]),
CALCULATE(
SUM(Book_Settles[Sales_Amount]),
ALL(Shop[Nation_Name])
)
)
 
i dont need to show  every currency type %. i need to show the Sales % by countries when Currency code column is in the table.  So How to change my DAX expression.🤔. PLEASE HELP ME
 

🤔🤔

Thank you 😊
5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

Try the two measures:

Sum of sales = 
CALCULATE(
    SUM(Sheet13[Sales_Amount]),
    ALLEXCEPT(
        Sheet13,
        Sheet13[Nation_Name]
    )
)
//
Sales % by country = 
DIVIDE(
    [Sum of sales],
    CALCULATE(
        SUM(Sheet13[Sales_Amount]),
        ALL(Sheet13)
    )
)

y11.PNG

 

Best regards,
Lionel Chen

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-lili6-msft
Community Support
Community Support

HI @Anonymous 

Adjust your formula as below:

Sales % by country 2 = 
DIVIDE(
    SUM( Book_Settles[Sales_Amount] ),
    CALCULATE(
        SUM( Book_Settles[Sales_Amount] ),
        ALL( Shop[Nation_Name]),ALL(Book_Settles[Currency_Code])))

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous ,

 

use below DAX, replace ALL(Shop[Nation_Name]) to ALL(Shop),

Sales % by country = DIVIDE(
SUM(Book_Settles[Sales_Amount]),
CALCULATE(
SUM(Book_Settles[Sales_Amount]),
ALL(Shop)
)
)

Best Regards,
Mail2inba4
Mariusz
Community Champion
Community Champion

Hi  @Anonymous 

 

Try adjusting your ALL() expression like below.

Sales % by country = 
DIVIDE(
    SUM( Book_Settles[Sales_Amount] ),
    CALCULATE(
        SUM( Book_Settles[Sales_Amount] ),
        ALL( Shop )
    )
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

 

 

Shop is a table name. Even i  replace Nation name in Dax by Shop name, % doesnt look, it look all 100%

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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