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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
shainis
Helper I
Helper I

Bar chart - Average of categories

Hi, I'm trying to show the average of the categories, not of the answers.

 

For example, the average of the answers would always be 20%, because the total is 100%, divided by 5.

I would like however to show the average of the categories, based on the answers. So it would be 3.56 in this case. I would like a line that crosses the bar on 3.56.

 

bar.PNG

 

My data is in excel that looks like that. Each line is a different submission in the questionnaire.

12.PNG

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @shainis ,

 

What does each row and each column mean in above sample dataset? How to generate the column chart based on such a sample table?

 


I would like however to show the average of the categories, based on the answers. So it would be 3.56 in this case. I would like a line that crosses the bar on 3.56.


What is the mathematical logic to calculate the result of 3.56?

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I managed to do so by changing the data type to decimal number instead of text.

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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