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
tiagoaa1996
New Member

Percentage by the total

Hi all,

 

I need help to make a calculation by the total of the filters by "CM / Budget", the measure that i created is doing a Sum of the percentage but what i need is a calculation of the total.

 

As below istead of 19.26% i need to see 2108 / 19991 = 10.5%

BudgetCMMy measure (wrong)
4.4173537.99%
15.5741.75511.27%
19.9912.10819.26% (Should be 10.5%)

 

Thanks for your help

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Use this:

% of Total = 
DIVIDE(
        SUM('Table'[CM]),
        SUM('Table'[Budget]),
        0
)

2020-06-03 10_42_04-Untitled - Power BI Desktop.png 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Use this:

% of Total = 
DIVIDE(
        SUM('Table'[CM]),
        SUM('Table'[Budget]),
        0
)

2020-06-03 10_42_04-Untitled - Power BI Desktop.png 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.