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

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

Reply
Anonymous
Not applicable

1 - % of Column Total

How would I calculate this simple calculation in a filtered table?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks. I figured out that all I really needed to do was use ALL(filtered_column[field])

View solution in original post

3 REPLIES 3
edhans
Super User
Super User

This pattern will do a % of total.

 

Percent of Total =
VAR varCurrentAmount =
    SUM( Table[Column] )
VAR varTotal =
    SUMX(
        ALL( Table ),
        Table[Column]
    )
VAR Result =
    DIVIDE(
        varCurrentAmount,
        varTotal,
        0
    )
RETURN
    Result

If you need more help, provide data in the format provided by the links below and maybe a screenshot or description of expected results.

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Thanks. I figured out that all I really needed to do was use ALL(filtered_column[field])


@Anonymous wrote:

Thanks. I figured out that all I really needed to do was use ALL(filtered_column[field])


You are welcome @Anonymous 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors