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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AnnaBanana
Frequent Visitor

Can you hide some columns of a matrix?

I am new to Power BI. I have created a simple matrix that looks like this:

LocationActiveActiveNon-ActiveNon-ActiveTotalTotal
NameCount% TotalCount% TotalCount% Total
California6646%7654%142100%
Virginia9881%2319%121100%
Maryland7644%9856%174100%
Oregon3450%3450%68100%
Nebraska9775%3225%129100%
Nevada1212%8888%100100%
Total38352%35148%734100%

I received a request to hide some of the columns so that the resulting matrix will look something like this:

LocationActiveTotal
Name% TotalCount
California46%142
Virginia81%121
Maryland44%174
Oregon50%68
Nebraska75%129
Nevada12%100
Total52%734

How can this be accomplished? Thank you.

1 ACCEPTED SOLUTION

@AnnaBanana 

 

Remove field from Columns and add measures below to Values.

Measure =
DIVIDE (
    COUNTROWS ( FILTER ( 'Table', 'Table'[Status] = "Active" ) ),
    COUNTROWS ( 'Table' )
)
Measure 2 =
COUNTROWS ( 'Table' )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @AnnaBanana ,

 

You gave go thru this post, similar is already solved.

https://community.powerbi.com/t5/Desktop/Hide-un-hide-un-wanted-Column-in-Matrix-Visualization/td-p/...

 

May be it is helpful.

 

Thanks,

Tejaswi

I looked at it. It is not exactly what I need. How would I display Active % Total as a percentage and Total Count as a count? 

@AnnaBanana 

 

Remove field from Columns and add measures below to Values.

Measure =
DIVIDE (
    COUNTROWS ( FILTER ( 'Table', 'Table'[Status] = "Active" ) ),
    COUNTROWS ( 'Table' )
)
Measure 2 =
COUNTROWS ( 'Table' )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.