Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello, I have three tables associated,
NF->NFITEM->CFOP
NF has multiple NFITEM (many to many)
NFITEM has multiple CFOP (Many to many)
I want to create a column based on a condition of CFOP table.
CFOP[COLUMN] == condition, then value = 1, else value = 2, 3 etc.
Example:
NF.Number = 30
NFItem.Number = 30, NFItem.Item->20, CFOP = 20 - >check condition 20, true.
NFItem.Number = 30, NFItem.item->50, CFOP = 25 -> check condition 25, true.
NF.Number = 50
NFItem.Number = 50, NFItem.Item->20, CFOP = 10 - >check condition 10, false.
NEW_TABLE:
| Number | Condition |
| 30 | True |
| 50 | False |
I'm importing the whole tables, not using power query.
I think it's possible to do with relationships + dax filter but it will be very slow, since it's many to many.
Is is better/possible to write some DAX like I suggested and put the summaryzed result in a different small table ?
or maybe having a list with NUMBERS_TRUE and NUMBER_FALSE so I could filter later, using the preprocessed result.
Thanks in advance.
You cannot create a column (a scalar value column) with M:M relationships - those return lists of values, not single values.
In order to create a column with data from related tables you need to be on the M side of a M:1 relationship.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |