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
Gabe_V
Helper I
Helper I

Percentages in Category calculates incorrectly, but percentages in Total column calculate correctly

I have a matrix in Power BI that looks like the following:

Gabe_V_1-1728586881668.png

 

I have a DAX measure that calculates Percentage of Active for each column as follows:

 

 

Percentage of Active = DIVIDE(
    COUNT('Project Status Report'[Project ID]),
    CALCULATE(COUNT('Project Status Report'[Project ID]), FILTER(ALLSELECTED('Project Status Report'),'Project Status Report'[Project Status]="Active")
    ))

 

 

My problem is that although the Percentage of Active calculates correctly for the Total column, it doesn't calculate properly for any of the other columns. For example: For the "Green" row, 7 in Total Combined Column divided by 11 in the Total row in the Total Active Column, converted to % provides the correct value of 63.64%. However, for the same "Green" row in the Control Center Column, a 6 in the Control Center Combined Column divided by 10 in the Total Row of the Control Center Active column, converted into a %, results in an incorrect value of 54.55% when it should have been 60%.

Does anyone have any idea how to fix this?

Considering I really care most for the Total column, if there is a way to hide "Percentage of Active" in all columns except the Total column in the matrix, that would be even better.

Any help is greatly appreciated, thank you! 

1 ACCEPTED SOLUTION

Thank you @lbendlin, I'll use that as a stop-gap. I think because this isn't dynamic as a backup I'll need help with my DAX to at least make those columns show correct data, on the off chance that I have to revert back to showing them.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @Gabe_V 

Thanks for lbendlin's reply. Obviously, this problem results because of 6/11, not 6/10, and you can provide pbix files without sensitive data for testing. Unfortunately, the current version of PBI desktop's matrix does not support displaying only the Total Combind columns.

Best Regards,
Yang

Community Support Team




Thank you for that clarification, @Anonymous . I wasn't able to figure out how to get it to divide by the individual column total as opposed to the grand total.

lbendlin
Super User
Super User

Disable word wrap for the column headers

Disable auto sizing for the column headers

Disable word wrap for the values

Size the undesired columns so small that they kinda sorta disapperar.

 

Note: This is not dynamic. New column values will bleed through.

Thank you @lbendlin, I'll use that as a stop-gap. I think because this isn't dynamic as a backup I'll need help with my DAX to at least make those columns show correct data, on the off chance that I have to revert back to showing them.

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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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