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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
em12963
Helper I
Helper I

Creating a new column that references existing columns from two join tables

Hi, I have two tables that have a many to one single cross filter relationship.

Main table:

KeyStudentSchool_Decile
1A0
2B2

 

New_School table:

KeyNew_School_Decile
11
22
33

 

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:

KeyStudentSchool_DecileNew column
1A0Moved to higher decile
2B2Moved 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!

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @em12963,

I have done it around the other. My new column is inside the main table:

 

10-07-_2020_16-36-41.png

 

Regards FrankAT

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @em12963,

I have done it around the other. My new column is inside the main table:

 

10-07-_2020_16-36-41.png

 

Regards FrankAT

Thanks @FrankAT @Anonymous !

That is really helpful.

Anonymous
Not applicable

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"

EricHulshof_0-1594381788245.png

 


 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.