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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
harirao
Post Prodigy
Post Prodigy

Matrix Column Subtotal

Hi Team,
I have created a Matrix Table, were Row subtotal & percentage measure is working correctly, but for column subtotal percentage is not coming correctly, but it is howing 100% for all.

Subtotal-1.PNG

Actual result should be as per below snapshot.
Subtotal-2.PNG
Created Measures

DISTINCTCOUNT = if(isblank(DISTINCTCOUNT(RawData[Opportunity ID])), 0 ,
(DISTINCTCOUNT(RawData[Opportunity ID])))

Rev Grp (%) =

if(isblank(calculate(SUMX(VALUES(RawData[Status_New]), (RawData[DISTINCTCOUNT])))),0,calculate(SUMX(VALUES(RawData[Status_New]), (RawData[DISTINCTCOUNT])))) /
if(ISBLANK(calculate(SUMX(VALUES(RawData[Status_New]), (RawData[DISTINCTCOUNT])), ALLSELECTED(RawData[Status_New]))),0,
calculate(SUMX(VALUES(RawData[Status_New]), (RawData[DISTINCTCOUNT])), ALLSELECTED(RawData[Status_New])))

Status = SUMX(VALUES(RawData[Status_New]), (RawData[DISTINCTCOUNT]))

 

Revenue% =
IF(ISBLANK([Status]),0,[Status]) & " / " & FORMAT([Rev Grp (%)], "0%")



Can you please assist me how to fix the column subtotal percentage 

Thank you

 

Regards,

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi,  @harirao 

You may need to check the result of measure 'Rev Grp (%)'.

Can you show that value in you matrix table?

 

Best Regards,
Community Support Team _ Eason

 

lbendlin
Super User
Super User

You  need to use HASONEVALUE() to figure out when your measure is computed for the column totals.

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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