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

Hiding 5th Level hierarchy in matrix visual

 So I have a Matrix Visual which has 5 fields in rows section and not all the values go till 5th level. Just till 4th level but since there are 5 fields in the matrix visual in row section then it shows empty row name and same data when there is no value in 5th level for few values .For example, As shown in image below FP FTB APP LICENSED does not have further level to go to but shows empty with a + sign but Outlet has further level

 

 

subhamsharma12_0-1747737883822.png

 

2 ACCEPTED SOLUTIONS
burakkaragoz
Community Champion
Community Champion

Hi @subhamsharma1-2 ,

 

You can replicate the SQL WHERE [month] IN (1,2,3) logic in DAX using the FILTER function with an OR condition, like this:

_Data = 
CALCULATE(
    DISTINCTCOUNTNOBLANK('<measure table>'[<measure column>]),
    FILTER(
        '<measure table>',
        RELATED('calendar'[month]) IN {1, 2, 3}
    )
)

Or if IN doesn’t work in your version, you can write it like this:

_Data = 
CALCULATE(
    DISTINCTCOUNTNOBLANK('<measure table>'[<measure column>]),
    FILTER(
        '<measure table>',
        RELATED('calendar'[month]) = 1 ||
        RELATED('calendar'[month]) = 2 ||
        RELATED('calendar'[month]) = 3
    )
)

Let me know if your calendar table is connected properly or if you need help adjusting the relationships!


If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI

View solution in original post

v-venuppu
Community Support
Community Support

Hi @subhamsharma1-2 ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @burakkaragoz for the prompt response.

You can resolve this by disabling the "Show items with no data" option for the 5th-level hierarchy field in the Matrix visual.

 Go to the Fields pane > Right-click the 5th-level field > Uncheck “Show items with no data”.

This removes the unnecessary expandable rows where no further data exists, keeping your matrix cleaner and accurate.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

View solution in original post

5 REPLIES 5
v-venuppu
Community Support
Community 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-venuppu
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-venuppu
Community Support
Community Support

Hi @subhamsharma1-2 ,

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

Thank you.

 

v-venuppu
Community Support
Community Support

Hi @subhamsharma1-2 ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @burakkaragoz for the prompt response.

You can resolve this by disabling the "Show items with no data" option for the 5th-level hierarchy field in the Matrix visual.

 Go to the Fields pane > Right-click the 5th-level field > Uncheck “Show items with no data”.

This removes the unnecessary expandable rows where no further data exists, keeping your matrix cleaner and accurate.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

burakkaragoz
Community Champion
Community Champion

Hi @subhamsharma1-2 ,

 

You can replicate the SQL WHERE [month] IN (1,2,3) logic in DAX using the FILTER function with an OR condition, like this:

_Data = 
CALCULATE(
    DISTINCTCOUNTNOBLANK('<measure table>'[<measure column>]),
    FILTER(
        '<measure table>',
        RELATED('calendar'[month]) IN {1, 2, 3}
    )
)

Or if IN doesn’t work in your version, you can write it like this:

_Data = 
CALCULATE(
    DISTINCTCOUNTNOBLANK('<measure table>'[<measure column>]),
    FILTER(
        '<measure table>',
        RELATED('calendar'[month]) = 1 ||
        RELATED('calendar'[month]) = 2 ||
        RELATED('calendar'[month]) = 3
    )
)

Let me know if your calendar table is connected properly or if you need help adjusting the relationships!


If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI

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.

Top Solution Authors