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
K7R-RS8-04
Frequent Visitor

Filter % of total based on other columns

I have a table that I am trying to apply filters on to show a % of total for a column Account Name. I've tried various SUM, FILTER, DIVIDE expressions but the % total seems to be using the total of all Account Names vs. the few I want to filter out.  Any suggestions on the DAX formulas to help with this would be appreciated.  Thank you!PBI Capture.png

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

use ALLSELECTED:

Total Quantity = CALCULATE ( [Total Quantity], ALLSELECTED ( ColumnName ) )

 

View solution in original post

4 REPLIES 4
harshnathani
Community Champion
Community Champion

HI @K7R-RS8-04 ,

 

You can try this measure for Total Percent

 

 

total _Percent =
var a = CALCULATE(Sum('Table'[Quantity]))
var b = CALCULATE(Sum('Table'[Quantity]), ALLSELECTED('Table'))

RETURN
DIVIDE(a,b)
 
 
1.jpg
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

That worked great - thank you!

AntrikshSharma
Super User
Super User

use ALLSELECTED:

Total Quantity = CALCULATE ( [Total Quantity], ALLSELECTED ( ColumnName ) )

 

That worked - thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.