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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
alperatay
New Member

How to get Related column on double relation

Hi, i created database in SQL Server and looks like relationships is:

 

pbirelationship.jpg

Product table CostPriceId and ListPriceId connected to ProductPrice Id column and ProductPrice.CurrencyId connected to Currency.Id

 

I want to create column as ListPrice and CostPrice on relationship. 

 

Like this: 

CostPrice = RELATED('Currency'[Symbol]) & " " & RELATED(ProductPrice[Amount])
ListPrice = RELATED('Currency'[Symbol]) & " " & RELATED(ProductPrice[Amount])
It's work but correctly work only on CostPriceId. How can change relation on CostPriceId and ListPriceId by column. I can't found like that problem. RELATED working on just CodePriceId value.
 
Thanks
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@alperatay , You can get like this using ListPriceId 

 

maxx(filter( ProductPrice, product[ListPriceId] =ProductPrice[ID]),ProductPrice[Amount])

 

refer 4 ways 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

1 REPLY 1
amitchandak
Super User
Super User

@alperatay , You can get like this using ListPriceId 

 

maxx(filter( ProductPrice, product[ListPriceId] =ProductPrice[ID]),ProductPrice[Amount])

 

refer 4 ways 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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors