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
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
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.