Forum Discussion
Bibeksharma
8 years agoRegular Visitor
IF and RELATED functions
I want to create a new column in Buildings table which gives: the country name, if it can find a related value in the Countries table; or Other otherwise. Buildings table is related with Countrie...
v-danhe-msft
8 years agoMicrosoft Employee
Hi Bibeksharma,
If your two tables has one to one relationship by the code, you could try this formula:
Column = IF(ISBLANK(RELATED(Countries[Country])),"other",RELATED(Countries[Country]))
Result:
You can also download the PBIX file to have a view.
https://www.dropbox.com/s/12k0ozlquoa8y76/IF%20and%20RELATED%20functions.pbix?dl=0
Regards,
Daniel He
Bibeksharma
8 years agoRegular Visitor
Hi Daniel,
The tables have one to many relationship.
Thank you