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
marshala
New Member

Plot columns with multiple values

Hi

I have a load of survey data, some of the questions were multi-select responses which I need to visualise. The data looks like this

Response IDNatural HazardFireClimateChangeEconomic shockViolenceEpidemic
62      
63Natural Hzard Climate ChangeEconomic shock  
76      
148Natural Hzard     
155      
162      
168 FireClimate Change   
175      
197 FireClimate ChangeEconomic shock  
213      
221      
233  Climate ChangeEconomic shock Epidemic
234  Climate Change ViolenceEpidemic
236  Climate ChangeEconomic shockViolence 
257Natural HzardFire    
267Natural Hzard Climate ChangeEconomic shockViolence 
275      
286      
296Natural HzardFireClimate ChangeEconomic shock  
300      
309Natural HzardFireClimate Change   
       

 

I want to produce a colum chart that shows a count for each response. So the x axis woould have Natural Hazard, Fire, Climate Change, Economic Shock, Violence and Epidemic and the y axis would be a count value, but I cannot work out how to do this.  Help please!

 

Thanks

A

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi

 

How are you looking to present the data?

 

If you are simply looking to represent each one selected with a count you can create seperate measures for each type as follows:

 

Natural Hazard Count = 
CALCULATE(
DISTINCTCOUNT([Response ID]),
FILTER(Table, [Natural Hazard] = "Natural Hazard")
)

However, if you are looking to combine these, you are best transposing the data in the query editor.

 

Hope that helps.

 

Thanks

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi

 

How are you looking to present the data?

 

If you are simply looking to represent each one selected with a count you can create seperate measures for each type as follows:

 

Natural Hazard Count = 
CALCULATE(
DISTINCTCOUNT([Response ID]),
FILTER(Table, [Natural Hazard] = "Natural Hazard")
)

However, if you are looking to combine these, you are best transposing the data in the query editor.

 

Hope that helps.

 

Thanks

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.