Forum Discussion
Creating a geographical hierarchy : Continent > Country
- 10 years ago
adrien5555 Actually there is an easy way. I replicated your scenario with Actual table (with values) and a table wth continents and countries (lookup table) and loaded it into powerbi desktop.
Go to query editor -> select values table -> Merge queries -> select matching columns from both table (countries column) -> left outer as join kind -> OK.
This will give you matching Continent from the lookup table
ankitpatira : thx, really see the point here. Got a new dataset with continents and countries.
Creating a Lookupvalue is a bit too much for me at this point... Any help very much appreciated.
Is it like :
IF (country in dataset1 match country in dataset2) THEN (Field value is equals to corresponding value //continent// in dataset2)
?
Tried to create a relationship between other dataset with a 'country' field, but I got this :
adrien5555 Actually there is an easy way. I replicated your scenario with Actual table (with values) and a table wth continents and countries (lookup table) and loaded it into powerbi desktop.
Go to query editor -> select values table -> Merge queries -> select matching columns from both table (countries column) -> left outer as join kind -> OK.
This will give you matching Continent from the lookup table
- adrien555510 years ago
Helper II
ankitpatira: So cool thanks so much !
Having another problem to refresh the dataset, but the preview in the Query Editor looks just perfect.
thanks !