cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Memorable Member
Memorable Member

Re: Percent of Total

@greggyb You are right..

Konstantinos Ioannou
Highlighted
Anonymous
Not applicable

Re: Percent of Total

@greggyb Thanks for putting this together so succinctly. In applying your solution I found that your first expression should actually be:

 

TotalQuantity =
SUM( 'Table'[Quantity] )

% Total =
[TotalQuantity]
    / CALCULATE(
        [TotalQuantity]
        ,ALL( 'Table' )
    )

 

Highlighted
Advocate I
Advocate I

Re: Percent of Total

Thanks so much for this, it was surprisingly hard to find a concise write-up on how to do this. I think this about the fifth time I've used one of your DAX approaches, so your contributions are very much appreciated.

Highlighted
Advocate III
Advocate III

Re: Percent of Total

Hello community, greetings from Lima!.

I am using this formula proposed by you:

04_%of_total_leads =
           [01_total_gross_leads]
           /
           CALCULATE(
                              [01_total_gross_leads],
                              ALL('01_dB')
                             )
But the % is not adjusting when I filter another visual... I mean the context filtering is not adjusting accordingly... please help!
Highlighted
Frequent Visitor

Re: Percent of Total

Building on this - I am trying a similar approach (using your same formula) and not getting the answer I expect.

 

Effectively, I am building a stacked bar chart where I hope to determine % of total business in each calendar year and month (so year + month is a bar in the chart). I am only showing for our top 15 customers, so by construction, the total % should be < 100 for a given period. The total currently exceeds 100 in each period, so something is definitively wrong with the calculation (namely, the numerator is probably for data for more than just the period for the shown bar).

 

Do you have advice as to how to fix this? Specifically, I am connected to a company database, so I can only add measures, not calculated columns. Many thanks in advance for your help!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Kudoed Authors
Users online (622)