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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
dt_2023
Frequent Visitor

Print values from a row based on a condition

Hi all,

 

I'm looking to create a column in a table "Source" that display only specific values from a row that matches the condition. The table row for Column ID meets more than one condition. For example: I have a table called "Source" that contains column ID and another table "Category"

 

Source #

ID
gpl 3.0, mpl 1.0
gpl 2.0, gpl 3.0
mpl 1.0, gpl 2.0
apache 2.0, mpl 1.1
apache 2.0, gpl 3.0, gpl 2.0

 

Category:

IDCategory
gpl 2.0Graylist
gpl 3.0Blacklist
mpl 1.0Graylist
mpl 1.1Blacklist
Apache 2.0Whitelist

 

Is there a way to filter values based on a category and display only the values specific to a category, even though the row contains values from all 3 categories.

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@dt_2023 

In Power Query split the ID column in to rows based on delimiter comma. Then you can create a relationship to the Category and filter the records in the source table based on the category selected.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@dt_2023 

In Power Query split the ID column in to rows based on delimiter comma. Then you can create a relationship to the Category and filter the records in the source table based on the category selected.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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