Forum Discussion

Basdo's avatar
Basdo
Frequent Visitor
3 years ago

Filter Column based on values from other column

Hi,

 

I have data of this format

 

KeyID
A1
A2
A3
B3
B4
C5
D6
E6
E7

 

Now I would like to filter by all IDs that are "connected" with eachother by Keys

For example:  ID 1 -> Key A -> ID2, ID 3 -> Key B -> ID 4

 

So the groups of IDs provided by the table above would be:

Group1:   1,2,3,4

Group2:   5

Group3:   6,7

 

Now I would also love to use these groups as filters  / slicers in my visual.

I'm thankful for any ideas.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Basdo,

    In fact, the grouping rules that you mentions are hard to reproduce the group information in your sample table.

    AFAIK, power bi data mode tables do not include row and column index. For this scenario, you can simply add tag to table to confirm if the specific category has continuous records. They will need to be coding complex conditions to check and exclude specific records.

    Regards,

    Xiaoxin Sheng