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
unnijoy
Post Partisan
Post Partisan

Overall Sales %

I have country wise slaes... Now i need to calculate total slaes % by coutry... So lets say total sales by all Countries = 1000 and the sales for US = 300.. Now i need to get the % as 300/1000.... How can i achive it.

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @unnijoy ,

 

I have built a simply data sample:

Eyelyn9_0-1656310861283.png

Please try:

Overall Sales % = 
DIVIDE (
    SUM ( 'Country-Sale'[Sales] ),
    CALCULATE ( SUM ( 'Country-Sale'[Sales] ), ALL ( 'Country-Sale'[Country] ) )
)

Output:

Eyelyn9_1-1656310880960.png

 

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

View solution in original post

1 REPLY 1
v-eqin-msft
Community Support
Community Support

Hi @unnijoy ,

 

I have built a simply data sample:

Eyelyn9_0-1656310861283.png

Please try:

Overall Sales % = 
DIVIDE (
    SUM ( 'Country-Sale'[Sales] ),
    CALCULATE ( SUM ( 'Country-Sale'[Sales] ), ALL ( 'Country-Sale'[Country] ) )
)

Output:

Eyelyn9_1-1656310880960.png

 

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

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.