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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Movses
Regular Visitor

Removing blanks from ragged hierarchies, visualizing it with matrix and scatter chart

Hi,

   I'm looking for a working solution to remove blank values from my visual representation of BOM(Bill of Materials). Currently, I need to represent the data with two visuals: a matrix and a scattered chart. I have searched for a solution around the net, made demo pbix a small set of data, and will attach it at the end of the post. Tried a few things:

  1. To simply tell the filter to not show empty or blank, but that way I lose levels in the hierarchy.
  2. To use custom matrix 'HierarchySlicer' that has built-in blanks removal, but that only works for matrix I'm still missing the scatter chart solution
  3. Tried to use custom measures found partials success with two measures that successfully filters the blanks if put the measures it to the value in the matrix visual.

 

 

Show BOM Remove blank = 
SWITCH(
    TRUE(),
    AND(ISINSCOPE('BOM'[LEVEL_2_ITEMID]),ISBLANK(VALUES('BOM'[LEVEL_2_ITEMID]))),
        BLANK(),
    AND(ISINSCOPE('BOM'[LEVEL_3_ITEMID]),ISBLANK(VALUES('BOM'[LEVEL_3_ITEMID]))),
         BLANK(),
    AND(ISINSCOPE('BOM'[LEVEL_4_ITEMID]),ISBLANK(VALUES('BOM'[LEVEL_4_ITEMID]))),
        BLANK(),
    AND(ISINSCOPE('BOM'[LEVEL_5_ITEMID]),ISBLANK(VALUES('BOM'[LEVEL_5_ITEMID]))),
         BLANK(),
    AND(ISINSCOPE('BOM'[LEVEL_6_ITEMID]),ISBLANK(VALUES('BOM'[LEVEL_6_ITEMID]))),
         BLANK(),
1)
1. Mesure
ROWDEPTH = MAX('BOM'[BOM_LEVEL])
2.Mesure
BROWSEDEPTH = 
    ISINSCOPE('BOM'[LEVEL_1_ITEMID])
    +ISINSCOPE('BOM'[LEVEL_2_ITEMID])
    +ISINSCOPE('BOM'[LEVEL_3_ITEMID])
    +ISINSCOPE('BOM'[LEVEL_4_ITEMID])
    +ISINSCOPE('BOM'[LEVEL_5_ITEMID])
    +ISINSCOPE('BOM'[LEVEL_6_ITEMID])
3.Mesure
HIDE = IF([BROWSEDEPTH]<=[ROWDEPTH],1)

 

 

Both work well if I add them to the value in the matrix visual, but fail if you try to use them as a universal filter so I can remove blanks from any visual more specifically from the Scatter chart.

Attaching my pbix if anyone is willing to do some experimenting and has any idea how to filter blanks from the Scatter Chart visual, by adding a filter of some sort or any other solution that I haven’t thought of yet. BOM_POC.pbix 

Thanks for the help in advance Movses

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors