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
guyinazo
Helper I
Helper I

A measure to show the aggregate total

So I am trying to get a column that shows the sum of the cumulative totals of item counts from a data set.  Here is an example:

 

TITLECumulative Total
AAA100
BBB75
CCC55
DDD40
EEE

25

Total

295

 

Here is what I want the final result to be

TITLECumulative TotalAll Record TotalsPercentage of total
AAA10029533.90%
BBB7529525.42%
CCC5529525.42%
DDD4029513.56%
EEE

25

2958.47%
Total295 100%

 

I know I need to do something like All Record Totals = CALCULATE([Cumulative Total],ALLSELECTED(TITLE)), but when I do this, I only get the Cumulative total returned.

 

What might I be doing wrong?  (Can you tell I am trying to do a Pareto?)  Thanks!

2 ACCEPTED SOLUTIONS
selimovd
Super User
Super User

Hey @guyinazo ,

 

maybe you can share your PBIX file?

For me the formula looked good and also my example works with your measure:

selimovd_0-1627309204655.png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

Thanks, that is exactly what I needed.  I had an error in the ALLSELECTED parameter as I was looking at a singular value and not the table as a whole.  It is good now.  Thanks!

View solution in original post

3 REPLIES 3
DataVitalizer
Super User
Super User

Hi @guyinazo 

You can achieve that result by creating a new column with the below DAX formula and make sure to format it to purcentage 

 

Percentage of total = 
VAR _t=CALCULATE(SUM('Table'[Cumulative Total]),REMOVEFILTERS('Table'))
Return 'Table'[Cumulative Total]/_t
 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated

selimovd
Super User
Super User

Hey @guyinazo ,

 

maybe you can share your PBIX file?

For me the formula looked good and also my example works with your measure:

selimovd_0-1627309204655.png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Thanks, that is exactly what I needed.  I had an error in the ALLSELECTED parameter as I was looking at a singular value and not the table as a whole.  It is good now.  Thanks!

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.