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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
HKeeling
New Member

Visualize data as percentage of total respondents rather than responses

I have survey data where respondents could select more than one response. Because of this my answers are not to a total of 100%. See raw data export attached. I would like to visualise this question in a bar chart where each bar reflects the correct percentage. At the moment i have the data in a bar chart with the count correct reflecting number of responses. I need to do a calcualtion so that the bars are in % and not a perectange of the grand total as this changes the data in proportion to 100%.

 

Please can someone advise how to do the next step - calculate the bars to be reflective of each factor divided by the total number of respondents for this question 806. For example 457/806 = 56.7%

HKeeling_0-1668699801620.png

Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HKeeling , Based on what I got, Assume the response is a measure

 

You can have % of GT is divide([response], calculate([response], allselected() ) )

 

if you do not want gt change based on slicer

 

divide([response], calculate([response], all() ) )

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @HKeeling ,

 

Has the problem be solved?

Please consider to mark the reply as solution if it's helpful.

 

 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@HKeeling , Based on what I got, Assume the response is a measure

 

You can have % of GT is divide([response], calculate([response], allselected() ) )

 

if you do not want gt change based on slicer

 

divide([response], calculate([response], all() ) )

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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