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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.