Forum Discussion
Create a custom column with value from another table
- 4 years ago
Hi, driplytics
Delete the relationship/add a new seperate table and then try calculated columns as below:
AirportOrigin = LOOKUPVALUE('Airport Data'[name],'Airport Data'[iata_code],'Dataset'[AirportFrom])Airport Destination = LOOKUPVALUE('Airport Data'[name],'Airport Data'[iata_code],'Dataset'[AirportTo])Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you tamerj1 for ypur response.
Here's Dax i used to Create the 2 Custom columns
driplytics
Please refer to sample file with the solution https://we.tl/t-GJkiT6Ovta
- driplytics4 years agoFrequent Visitor
thanks tamerj1 , i think you are close to the solution.
but instead of returning same Iata_code (Eg in the pics below, ATL is an Airport code), i want the name returned (Hartsfield Jackson Atlanta International Airport) on the custom columns.
- v-easonf-msft4 years ago
Community Support
Hi, driplytics
Delete the relationship/add a new seperate table and then try calculated columns as below:
AirportOrigin = LOOKUPVALUE('Airport Data'[name],'Airport Data'[iata_code],'Dataset'[AirportFrom])Airport Destination = LOOKUPVALUE('Airport Data'[name],'Airport Data'[iata_code],'Dataset'[AirportTo])Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.