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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
tsumit07
Frequent Visitor

Create Dynamic Filter

Hello Everyone, 

I am trying to reach a task where i have to created filter on child component column and find all result with parent and all its child.

I have used approach grouping approach (Grouped  Child items with Parent ) and than created new table with Union child parent.

 

Also once data is filtered , it should color all parents in different colours. for this i have used ( Randx and calculating MOD than conditional colouring )

 

I am facing issue when i try to filter one of the component (with most data) getting error data visual exceeds its limit.

 

Could you please suggest any different approach or solution how can i fix this ?

 

Thank you all in advance.

original table 

BOMComponent
BOM1COM1
BOM1COM2
BOM1COM3
BOM2COM1
BOM2COM2
BOM2COM3
BOM3COM1
BOM3COM2
BOM3COM3
BOM3COM4
BOM4COM1
BOM4COM2
BOM5COM1
      
Data filtering should look like this when filter Com4 only      
BOMComponent
BOM3COM1
BOM3COM2
BOM3COM3
BOM3COM4
      
       
Filter Component = Com1 should show all BOM incuding its components 
       
Filter component = Com4  should only show BOM3 and so on 
       
Once filtered Would like to colour BOM in different colour alternativey
       

 

2 REPLIES 2
Anonymous
Not applicable

HI @tsumit07,

Current you can't use default filter effect to achieve these, I'd like to suggest you extract the field value to create a unconnected table as source of filter.
After this, you can write a measure formula to compare table records and return flag. Then you can use for conditional formatting or put it on 'visuals level filter' to filter records.

formula =
VAR selected =
    VALUES ( newTable[Component] )
VAR BomList =
    CALCULATETABLE (
        VALUES ( Table1[BOM] ),
        FILTER ( ALLSELECTED ( Table1 ), [Component] IN selected )
    )
VAR currBom =
    SELECTEDVALUE ( Table1[BOM] )
RETURN
    IF ( currBom IN BomList, "Y", "N" )

BTW, current power bi does not support create dynamic calculated column/table based on filter effect. They not work on the same level and you can't use their child level of effect its parent.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

Hi Xiaoxin, 

 

I have followed the steps as suggested below.

Created new unconnected table and used same formula for the measure and used measure in on Visual filter.

Not getting any result back.( Only When i create the relationship between old and new table than i get the result/results)

 

Please suggest if i am doing something wrong.

 

Regards 

S

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.