Reply
Regular Visitor
Posts: 15
Registered: ‎11-29-2018
Accepted Solution

Column Chart Percentages not Equal to Matrix Percentages

[ Edited ]

I am trying to create a clustered column chart to display the data in my matrix, but when you hover over the columns to get the exact percentage and not the rounded percentage, the percentage is slightly off. 

 

I want to know what percentage of particpants responded Strongly Agree, Agree, Neutral, Disagree, or Strongly Disagree to Q1 within each year.

 

I first created a measure to count the number of responses for each response option. 

 

Count-Q1= COUNT(Satisfaction_Survey[Q1]). 
 
I then created another measure: 
 
%= DIVIDE(Table1[Count-Q1], CALCULATE(Table1[Count-Q1], ALLEXCEPT(Satisfaction_Survey,Satisfaction_Survey[SurveyYear])))
 
For my matrix, I have Q1 for rows and survey year for columns. I used the percent of column total of Q1 for the value. Can someone please help me to determine why my measures are not giving me the exact percentages as my matrix? 
 

 

 


Accepted Solutions
Community Support Team
Posts: 3,661
Registered: ‎07-09-2016

Re: Column Chart Percentages not Equal to Matrix Percentages

@mstuve,

 

It seems that you may just select Percentage format under Modeling tab.

Regards,
Sam

View solution in original post


All Replies
Community Support Team
Posts: 3,661
Registered: ‎07-09-2016

Re: Column Chart Percentages not Equal to Matrix Percentages

@mstuve,

 

It seems that you may just select Percentage format under Modeling tab.

Regards,
Sam
Regular Visitor
Posts: 15
Registered: ‎11-29-2018

Re: Column Chart Percentages not Equal to Matrix Percentages

When I change it to percentage for format, it changes the matric count. If I change my graph measure to percentage format, the percentages are way off (see attachment). When I change my measure to show the value as the percent of grand total, the rounding is correct, but when you hover over, the percentages are slightly off (see attachment). Thank you! #respondPercentformat.jpgpercent example.jpgpercent format.jpg

Regular Visitor
Posts: 15
Registered: ‎11-29-2018

Re: Column Chart Percentages not Equal to Matrix Percentages

I think the issue is that I am including ALL values in my measure for my graph, whereas I am not including Blanks or NA in my matrix. How do I edit my measure to not include Blanks and NA when calculating percentages? My current measure is: 

 

#ofRespondentsT = DIVIDE(COUNTA(Satisfaction_Survey[Time]), CALCULATE(COUNTA(Satisfaction_Survey[Time]), ALLEXCEPT(Satisfaction_Survey,Satisfaction_Survey[SurveyYear])))
Highlighted
Member
Posts: 48
Registered: ‎11-27-2018

Re: Column Chart Percentages not Equal to Matrix Percentages


@mstuve wrote:

I think the issue is that I am including ALL values in my measure for my graph, whereas I am not including Blanks or NA in my matrix. How do I edit my measure to not include Blanks and NA when calculating percentages? My current measure is: 

 

#ofRespondentsT = DIVIDE(COUNTA(Satisfaction_Survey[Time]), CALCULATE(COUNTA(Satisfaction_Survey[Time]), ALLEXCEPT(Satisfaction_Survey,Satisfaction_Survey[SurveyYear])))

 

Hi,

 

Please have a look at this.

 

The example used at the bottom of that page might solve your problem although you need to change a bit.

 

Kind regards,

Regular Visitor
Posts: 15
Registered: ‎11-29-2018

Re: Column Chart Percentages not Equal to Matrix Percentages

When I format the original measure, I am getting close to the correct percentages. I need to filter out any response that is BLANK or NA - Not Applicable, but I am not sure how to edit my measure to do so.