Forum Discussion
ruhor
10 years agoFrequent Visitor
Filling in Calculated Colmn Values if an Entry Exists in Another Table
I have two DB tables which I imported into Power BI. One is a table of rental properties named "property" and the other is a table of metered utilities named utilityprops. I added a new column to the...
- 10 years ago
Make sure that utilityprops is related to properties (many to one) and then use this for your metered column:
metered = IF(COUNTX(RELATEDTABLE(utilityprops),'utilityprops'[propid])>0,1,0)
Greg_Deckler
Community Champion
10 years agoMake sure that utilityprops is related to properties (many to one) and then use this for your metered column:
metered = IF(COUNTX(RELATEDTABLE(utilityprops),'utilityprops'[propid])>0,1,0)
- ruhor10 years agoFrequent Visitor
Works perfect, thanks.