Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Wolly
Helper I
Helper I

% of total issue/bypassing single (of a few) visual filter(s)

In a table I have a top 10 list of holdings along with their respective absolute values.  I'd like to create a "% of Total" where "Total" is the value of the 100+ holdings in the table. but my calculation seems to working off of the Top Ten filter and so can't properly compute a Total.  How do i bypass that filter?

 

The working formula i have is: 

 

Total= calculate(sum('TempAccount by Security'[MktValue]))
1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @Wolly 

 

Maybe try this:

Total =
CALCULATE(
    SUM( 'TempAccount by Security'[MktValue] ),
	ALL( 'TempAccount by Security' )
)


Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

9 REPLIES 9
gmsamborn
Super User
Super User

Hi @Wolly 

 

Maybe try this:

Total =
CALCULATE(
    SUM( 'TempAccount by Security'[MktValue] ),
	ALL( 'TempAccount by Security' )
)


Proud to be a Super User!

daxformatter.com makes life EASIER!

Followup from this problem,

 

If the top 10 list was on an already filtered list (via slicer) called "Name", how would i maintain the filter Name, but still calculate a total on Name's 100 holdings?

Giving more detail to above:

 

I have a slicer which picks Individual 1, Individual 2, Individual 3 etc..

 

That filters the Top 10 holdings list of each individual with each value.  GMSamborn shared how to aggregate values ignoring the top 10 filter....but it gave me the sum of all Individuals.  I need to keep that filter when computing the total.

 

Hope that makes sense.  Appreciate the help

 

I think you need to read up on ALL() and ALLSELECTED().

 

I made up a pbix with mock data and a few measures for a starting point.  Take a look at it and hopefully I'm going in the right direction.  

 

Wolly.pbix

 

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Ok on the right track and have adjusted file which i've included wolly.pbix (I understand All vs. AllSelected but still need to factor in the slicer filter which All neglects)

 

You'll see the slicer options for Individuals.  The Sum of Mkt Value should not equal Value in table.  As each Individual's Sum of Mkt Value is greater than the 5 or 6 holdings listed.

I figured it out....add the AllExcept filter and all is well!  Thx for bearing with me.

This also helps.

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Hi @Wolly 

 

Using mock data, can you replicate your problem.  With that mock data, show your expected result as well as how you expect to use the measure.

 

Please read this: 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Hope this illustrates what i'm looking forHope this illustrates what i'm looking for

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors