Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I have two tables that have a many to one single cross filter relationship.
Main table:
| Key | Student | School_Decile |
| 1 | A | 0 |
| 2 | B | 2 |
New_School table:
| Key | New_School_Decile |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
I thought that if I had these two table joined, then I can create a new column within the Main table that references the Programme type.
My desired output is to have the new column in the Main table:
| Key | Student | School_Decile | New column |
| 1 | A | 0 | Moved to higher decile |
| 2 | B | 2 | Moved to same decile |
New column =
IF (New_School [New_School_Decile] > Main[School_Decile], "Moved to higher decile",
IF (New_School [New_School_Decile] < Main[School_Decile], "Moved to lower decile",
IF (New_School [New_School_Decile] = Main[School_Decile], "Moved to same decile", “IFERROR”)))
However, Power BI doesn’t allow me to reference the columns in the New_School table when I try to create a new column calculation within the Main table. It only lets me reference columns or measures within the Main table. Why is that?
And how do I get around that? I thought that by creating an active join between the two tables, I can then create a calculated column to reference them. Is it because it is due to the join type being a many to one relationship? Help! Please point me in the right direction.
Many thanks!
Solved! Go to Solution.
Hi @em12963,
I have done it around the other. My new column is inside the main table:
Regards FrankAT
Hi @em12963,
I have done it around the other. My new column is inside the main table:
Regards FrankAT
This works:
New column =
IF (New_School[New_School_Decile] > RELATED(Main[School_Decile]), "Moved to higher decile",
IF (New_School[New_School_Decile] < RELATED(Main[School_Decile]), "Moved to lower decile",
IF (New_School[New_School_Decile] = RELATED(Main[School_Decile]), "Moved to same decile", "IFERROR")))
However, when there is a Key in the New_School tabel, wich is not in Main table it will show all blank rows and a "Moved to higher decile"
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |