cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShanTheMan
New Member

Help with Filled Map - multiple value is location and colour saturation field

 

Hello,

 

I have an consultant database from an excel sheet and I have a field/column  called "Country expertise". The field is multi-entry where you can enter multiple countries. In the field if more than one country has been entered for a single consultant it will appear as follows in the same cell:

Zambia;

Jordan;

South Sudan;

 

What I am trying to do is use the Filled Map to display by  colour saturation to show the most countries mentioned. So if "Zambia" appeared the most times within Countries Expertise field/column it would have the highest saturation. 

 

Is there any way of for PowerBi to pickup the country names as separate values and count them? As when I put the field into Location and Color saturation it will up the raw field data. E.g(Zambia; Jordan; South Sudan;)

 

Thanks,

 

 

 

1 ACCEPTED SOLUTION
BetterCallFrank
Resolver IV
Resolver IV

Hi @ShanTheMan

 

yes, you can do that with these steps:

 

1) in Powerquery split the Country expertise column by separator

2) unpivot all the columns that will be generated by 1) into one column

 

Please make sure that the duplicate data that will be generated by 2) does not affect other parts of your data model

 

e.g. if your data now looks like this

 

Consultant | CountryExpertise

Bob | Sudan;China;Brazil

Peter | USA

 

will look like this after 1):

 

Consultant | CountryExpertise1 | CountryExpertise2 | CountryExpertise3

Bob | Sudan | China | Brazil

Peter | USA

 

and finally like this after 2)

Consultant | CountryExpertise

Bob | Sudan

Bob | China

Bob | Brazil

Peter | USA

 

HTH,

Frank

View solution in original post

2 REPLIES 2
BetterCallFrank
Resolver IV
Resolver IV

Hi @ShanTheMan

 

yes, you can do that with these steps:

 

1) in Powerquery split the Country expertise column by separator

2) unpivot all the columns that will be generated by 1) into one column

 

Please make sure that the duplicate data that will be generated by 2) does not affect other parts of your data model

 

e.g. if your data now looks like this

 

Consultant | CountryExpertise

Bob | Sudan;China;Brazil

Peter | USA

 

will look like this after 1):

 

Consultant | CountryExpertise1 | CountryExpertise2 | CountryExpertise3

Bob | Sudan | China | Brazil

Peter | USA

 

and finally like this after 2)

Consultant | CountryExpertise

Bob | Sudan

Bob | China

Bob | Brazil

Peter | USA

 

HTH,

Frank

Hi @BetterCallFrank

 

Thanks for your quick respond.

Work perfectly thanks for you help.

 

Most appreciated.

 

 

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors