The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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
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!
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.
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.
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.
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!
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