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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Baskar
Resident Rockstar
Resident Rockstar

Row level % in Matrix

Thanks Advaced,

 

My prob is have to calculate row level percentage in matrix report. 

 

Capture.PNG

Table Explain:

 

Month from - Month master

Product (A,B,C) from - Product Master

Sales from - Sales master 

 

Question is :

       How to get row level percentage ? using DAX.

 

Thanks

@Sean @ankitpatira @KHorseman @Seth_C_Bauer

 

 

1 ACCEPTED SOLUTION
Baskar
Resident Rockstar
Resident Rockstar

Thanks @Sean

 

I got the solution, i did previously but i forgot it now i got it.

 

anyhow thanks buddy....

 

% Cal = Divide(Sum(Sales[Sales]), Calculate(Sum(Sales[Sales]),All(Date[month]))) 

View solution in original post

7 REPLIES 7
Vvelarde
Community Champion
Community Champion

Hi, this was my solution.
 
My% =
DIVIDE (
    CALCULATE (
        SUM ( Sales[Sales] );
        ALLEXCEPT ( Sales; Sales[Product]; Sales[Month] )
    );
    CALCULATE ( SUM ( Sales[Sales] )ALLEXCEPT ( Sales; Sales[Product] ) )
)
 



Lima - Peru
Sean
Community Champion
Community Champion

If your sales data is formatted as in the picture you posted - obviously you need to Unpivot first!

 

Then just use this measure - you basically need a total for each product which you can get with ALLEXCEPT

EDIT: Overall Total for each Product (Denominator)

 

Measure =
DIVIDE (
    SUM ( Sales[Sales] ),
    CALCULATE ( SUM ( Sales[Sales] ), ALLEXCEPT ( Sales, Sales[Product] ) ),
    0
)

 

% of Row Level.png

Baskar
Resident Rockstar
Resident Rockstar

Hi @Sean

 

Which i shown in picture that is not my data.

 

First 1 is which am getting now in Power BI, Second one is i need.

 

one more info, Product is from different table.

Sean
Community Champion
Community Champion

So how are sales and product connected?

Baskar
Resident Rockstar
Resident Rockstar

Thanks @Sean

 

I got the solution, i did previously but i forgot it now i got it.

 

anyhow thanks buddy....

 

% Cal = Divide(Sum(Sales[Sales]), Calculate(Sum(Sales[Sales]),All(Date[month]))) 

Sean
Community Champion
Community Champion

Okay great!

 

Measure 2 = 
DIVIDE (
    SUM ( Sales[Sales] ),
    CALCULATE ( SUM ( Sales[Sales] ), ALL('Calendar') ),
    0
)

 

% of Row Level2.png

Baskar
Resident Rockstar
Resident Rockstar

I have product ID Relationship

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors