Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.