March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I have a following problem, I have two tables in a one-to-many relationship, which means that one record from the first table may have several counterparts in the second table. I need to check if there is any "Yes" value in this second table for each ID in first table, if so, it should return TRUE, otherwise FALSE. Currently I solved that by creating CALCULATED TABLE through SUMMARIZE and I extract that information via USERELATIONSHIP calculated column, but I was wondering if I can do it more easily using just MEASURE or just calculated column directly from that table.
Thank you in advance
Solved! Go to Solution.
@m4xon , If you need a new column on one side table
New column = var _cnt = countx(filter(Table2, Table1[ID] = Table2[ID] && Table2[Value] = "Yes"), Table2[ID])
return
if(not(isblank(_cnt)), "Yes", "No")
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
@m4xon , If you need a new column on one side table
New column = var _cnt = countx(filter(Table2, Table1[ID] = Table2[ID] && Table2[Value] = "Yes"), Table2[ID])
return
if(not(isblank(_cnt)), "Yes", "No")
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |