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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Raymo3u99
Helper I
Helper I

Hiding columns in a matrix based on a filter

I have a table with the following columns

 

Region

Category

Org_comment

Region_comment

Cat_comment

Eff_month

Variance_amt

 

I have a filter where the user selects the type of comment to display : Org / Region / Cat

 

I need to display the following in a matrix: ( The comment column should show either org_comment, region_comment or Cat_comment based on user selection)

Region Category and Comment are the rows

 Eff_Month is the column and

Variance_amt is the value

 

RegionCategoryCommentEff Month
    
    

 

Thanks for your help.

 

Raymond

3 REPLIES 3
amitchandak
Super User
Super User

@Raymo3u99 , see if that can help

https://www.youtube.com/watch?v=6jeSIRpjv0M

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak .

That worked for me. The only issue I found was that it dropped null values from the unpivoted column, so I had to create a view and replace nulls with blanks.

 

Hi @Raymo3u99 ,

 

"That worked for me. The only issue I found was that it dropped null values from the unpivoted column, so I had to create a view and replace nulls with blanks."

Please show a sample data table, maybe I can help you complete the table conversion work.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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