cancel
Showing results for
Did you mean:
Senior Member

## Re: Percent of Total

@greggyb You are right..

Konstantinos Ioannou
Regular Visitor

## 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' )
)```

Regular Visitor

## 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.

Frequent Visitor

## Re: Percent of Total

Hello community, greetings from Lima!.

I am using this formula proposed by you:

/
CALCULATE(
ALL('01_dB')
)
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!

Announcements

#### Community News & Announcements

Get your latest community news and announcements.

#### Power Platform Summit North America

Register by September 5 to save \$200

#### Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 329 members 3,626 guests
Recent signins: