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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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