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 August 31st. Request your voucher.

Reply
subhamsharma1-2
New Member

Power BI Matrix Visual Hierarchy Issue

So I have a matrix visual and we have put different columns in the rows section as shown in screenshot below. I want to hide the full row that is marked using red. I do not want to filter them out as it will change the grand totals and subtotals. I just want to hide it and still be part of grand totals and subtotals. I have hidden the data with red but the empty one does have values in demand value, vsfc and Y-O-Y

 

subhamsharma12_0-1747384267534.png

 

1 ACCEPTED SOLUTION
v-ssriganesh
Community Support
Community Support

Hi @subhamsharma1-2,
Thank you for reaching out to the Microsoft Fabric Community Forum.

I have reproduced your scenario in Power BI Desktop and can confirm that I achieved the expected output as per your requirement the specific row (e.g., “Internal Partners”) is visually hidden in the matrix visual without affecting the totals or subtotals.

  • Created a display column in the dimension table using DAX:
BusinessType Display =

IF(

    'BusinessTypeTable'[BusinessType] = "Internal Partners",

    BLANK(),

    'BusinessTypeTable'[BusinessType]

)
  • Used this new field (BusinessType Display) in the Rows section of the matrix visual.
  • This hides the unwanted row label while still keeping its values in the subtotal.

Output:

Only “Gated Partners” and “Non-Gated Partners” appear under “Partner Program” in the matrix, but the hidden category's data is still included in the total.

For your reference, I’m attaching the .pbix file used to reproduce and test this scenario. You can explore or adapt it as needed.

If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.

Thank you.

View solution in original post

6 REPLIES 6
v-ssriganesh
Community Support
Community Support

Hi @subhamsharma1-2,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

v-ssriganesh
Community Support
Community Support

Hi @subhamsharma1-2,

May I ask if you have resolved this issue? If so, please mark it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

v-ssriganesh
Community Support
Community Support

Hi @subhamsharma1-2,
Thank you for reaching out to the Microsoft Fabric Community Forum.

I have reproduced your scenario in Power BI Desktop and can confirm that I achieved the expected output as per your requirement the specific row (e.g., “Internal Partners”) is visually hidden in the matrix visual without affecting the totals or subtotals.

  • Created a display column in the dimension table using DAX:
BusinessType Display =

IF(

    'BusinessTypeTable'[BusinessType] = "Internal Partners",

    BLANK(),

    'BusinessTypeTable'[BusinessType]

)
  • Used this new field (BusinessType Display) in the Rows section of the matrix visual.
  • This hides the unwanted row label while still keeping its values in the subtotal.

Output:

Only “Gated Partners” and “Non-Gated Partners” appear under “Partner Program” in the matrix, but the hidden category's data is still included in the total.

For your reference, I’m attaching the .pbix file used to reproduce and test this scenario. You can explore or adapt it as needed.

If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.

Thank you.

Hi @subhamsharma1-2,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.
Thank you.

SamWiseOwl
Super User
Super User

Do you still want the row to be there?

If so conditionally format the font colour using a measure.

Colour Hide values =
If( SELECTEDVALUE(table[Business Type) = "Mystery category"
,"#FFFFFF00"
,"Black"
)
 
This means the rows are still there so could be seen if Export to excel or Show as Table are enabled.
Instead create a measure that won't show the value:
Hide values =
SWITCH(
    TRUE()
    ,NOT(ISINSCOPE('table'[Business Type])) --NOT on the row
    ,[Your measure]
    ,SELECTEDVALUE('table'[Business Type]) = "Mystery category" --if on the category row
    ,BLANK() --show nothing
    ,[Your measure] --anything else show the calculation
)

SamWiseOwl_0-1747386218709.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

The row should be just hidden as it's data is still required but when we expand the hierarchy, THere should olny be gated and non-gated partners under partner program.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.