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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
some
New Member

RELATED() Doesn't work - either doesn't exist or doesn't have a relationship to any table available

Hi, I have this model where there is a relationsship between my calendar and the table "Planzahlen".

This relationship works and I use it in many charts:

https://imgur.com/AgyESVG 

 

Now I try to create this measure in the table "Planzahlen" to get the related Months:

MonatJahr = RELATED('Kalender_lookup'[Year])

 

 

Trying that, I get this error: 

The column 'Kalender_lookup[Year]' either doesn't exist or doesn't have a relationship to any table available in the current context.

 

Why doesn't it work in this contexts?

 

Btw, I follow this tutorial 

http://sqljason.com/2018/03/display-last-n-months-selected-month-using-single-date-dimension-in-powe...

 

Thanks!

 

Br

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@some . Related work in 1- Many relation from one to many side.

a New column  = related(Calendar[Minth Year])

 

 

A new measure = maxx(Sales, related(Calendar[Month Year]) )

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@some . Related work in 1- Many relation from one to many side.

a New column  = related(Calendar[Minth Year])

 

 

A new measure = maxx(Sales, related(Calendar[Month Year]) )

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak 

I am an idiot of course I need a column not a measure!! thank you

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.