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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.