Forum Discussion
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
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.
6 Replies
- SamWiseOwlSuper 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)
- subhamsharma1-2New Member
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.
- v-ssriganeshCommunity 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.
- v-ssriganeshCommunity Support
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.
- v-ssriganeshCommunity 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-ssriganeshCommunity 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.