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
Basdo
Frequent Visitor

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 1
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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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