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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
krwalke
Frequent Visitor

Conditional Many to One Relationship Question

Hi Group,

 

I'm relatively new to Power BI, and am stuck on pulling just one specific value to return from a many to one relationship.  My data set below (Table A - Many side of the relationship) shows each JobID having multiple Milestones, but not necessarily every Milestone.  In a separate table (Table B - One side of the relationship) that the JobID is relationshipped with (Many to One), I'd like to show a true/false or some kind of output for only one specific Milestone - let's say 100.

 

So, if the JobID in Table A has a 100 Milestone, then True, else False.. for all JobIDs in Table B.

 

Table A:

krwalke_0-1668115405390.png

 

Hopefully this makes sense and thanks for the help!

1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @krwalke,

 

Filter Table A first to create a new table that only has the IDs with a specific milestone.

 

Milestone IDs = FILTER('Table A','Table A'[Milestone]=100)

 

Then create a flag in Table B that shows true or false based on the fact whether that ID is present in the filtered table or not.

 

Flag = IF(ISBLANK(LOOKUPVALUE('Milestone IDs'[Job ID],'Milestone IDs'[Job ID],'Table B'[Job ID])), "False", "True")

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

View solution in original post

1 REPLY 1
Shaurya
Memorable Member
Memorable Member

Hi @krwalke,

 

Filter Table A first to create a new table that only has the IDs with a specific milestone.

 

Milestone IDs = FILTER('Table A','Table A'[Milestone]=100)

 

Then create a flag in Table B that shows true or false based on the fact whether that ID is present in the filtered table or not.

 

Flag = IF(ISBLANK(LOOKUPVALUE('Milestone IDs'[Job ID],'Milestone IDs'[Job ID],'Table B'[Job ID])), "False", "True")

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

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.