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
bvdm1980
Helper II
Helper II

add % of total column to filtered matrix

Hi 

 

I have a matrix table, with columns: 

 

Supplier Name

Order Amount

 

I filtered this table to get the top 10 of suppliers. 

But how do i add a column in that matrix showing the % of the total order amount for all suppliers? 

 

I tried this: 

DIVIDE(
  SUM(fact_orderlines[order amount]),
    CALCULATE(
      SUM(Fact_orderlines[order amount]),
      ALLSELECTED(Fact_orderlines[order amount])))
 
but that aint working. I searched on internet but didnt find solution yet or maybe i found it but am using the dax wrong? 

thanks for the help!
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi  @bvdm1980

try like:

DIVIDE(
  SUM(fact_orderlines[order amount]),
  CALCULATE(
      SUM(Fact_orderlines[order amount]),
      ALLSELECTED(Fact_orderlines[Supplier Name])
    )
)

 

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi  @bvdm1980

try like:

DIVIDE(
  SUM(fact_orderlines[order amount]),
  CALCULATE(
      SUM(Fact_orderlines[order amount]),
      ALLSELECTED(Fact_orderlines[Supplier Name])
    )
)

 

Thanks for the help (sorry for the late reply :)). Only seeing it just now. 

I found another solution that works like a charm as well: 

DIVIDE(
    SUMX(
        TOPN(10,Fact_orderlinesSUM(Fact_orderlines[Amount])),
        Fact_orderlines[Amount]),
        SUMX(ALLSELECTED(Fact_orderlines), Fact_orderlines[Amount]))

Helpful resources

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

June 2025 community update carousel

Fabric Community Update - June 2025

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