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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
irisoer
New Member

Use forms categories to calculate average

I'm working on a visual that should calculate the average per [certain filter]. 

The categories would look something like: 
fully disagree, disagree, neutral, agree, fully agree 
And there are multiple columns that use this system that I need to visualize. 

 

Right now I set the text to numbers to calculate it by changing the sheet, but that is not actually what I want. 
Where the numbers are, I would like to have the categories, but still calculated like this. How do I do this? 

irisoer_0-1744190566918.png

 

 

Business unitDepartmentDo you agree to XDo you agree to Y
Sustainable FashionAFully disagreeDisagree
Health and Wellness ProductsBDisagreeNeutral
Health and Wellness ProductsCNeutralAgree
Marketing ServicesBAgreeFully agree
Sustainable FashionAFully agreeFully disagree
E-learning PlatformsDFully disagreeDisagree
Health and Wellness ProductsEDisagreeNeutral
Sustainable FashionFNeutralAgree
Marketing ServicesGAgreeFully agree
Food deliveryHFully agreeFully disagree
Smart homeIFully disagreeFully agree
Smart homeJFully agreeAgree

 

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @irisoer ,

When plotting a bar graph, it is mandatory for the other field to be an aggregation to display a bar.
Here, x-axis cannot be a text field when y-axis is already a Dimension field.
By using the measure provided you can show average rating by Business unit or you can make use of Small Multiples feature to have a clearer understanding of the data.

Below snap for reference-

Shruti_D_0-1744381509553.png

Hope this helps!
If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

View solution in original post

7 REPLIES 7
v-sdhruv
Community Support
Community Support

Hi @irisoer ,
Just wanted to check if you had the opportunity to review the suggestions provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

v-sdhruv
Community Support
Community Support

Hi @irisoer ,
Just wanted to check if you had the opportunity to review the suggestions provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

v-sdhruv
Community Support
Community Support

Hi @irisoer ,

When plotting a bar graph, it is mandatory for the other field to be an aggregation to display a bar.
Here, x-axis cannot be a text field when y-axis is already a Dimension field.
By using the measure provided you can show average rating by Business unit or you can make use of Small Multiples feature to have a clearer understanding of the data.

Below snap for reference-

Shruti_D_0-1744381509553.png

Hope this helps!
If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

danextian
Super User
Super User

Hi @irisoer 

 

What visual are you using? Also, please share sample data (not a screenshot), your expected result, and the reasoning behind. A link to an Excel file or a sanitized copy of your PBIX is fine (confidential data removed). Just as it takes time to prepare your sample data, it also takes time to come up with a solution.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I provided the dummy data in the original post.

 

I'm using the visual clustered bar chart.

 

The reasoning behind is to create a report in which people can see the results of a microsoft forms file in an easy way. 

The goal is to create the visual like in the screenshot, and on the y-axis would be the business units and the colours would be the departments

Sonalika
Regular Visitor

@irisoer  Assuming you have mapped numbers to categories as : 
Fully Disagree -2 ,Disagree -1,Neutral 0,Agree 1,Fully Agree 2

Use the following to create a calculated column that assigns a number to each category :
LikertValue =
SWITCH(
[YourColumn],
"Fully Disagree", 1,
"Disagree", 2,
"Neutral", 3,
"Agree", 4,
"Fully Agree", 5
)
Now create a measure to calculate the average Likert score:
AvgLikert = AVERAGE(YourTable[LikertValue])

This will show the average score, but still allows you to use category labels for context.

Hope this helps!!! 😊



 

Sonalika
Regular Visitor

@irisoer Assuming the numbers are mapped like this :

Fully Disagree -2 ,Disagree -1,Neutral 0,Agree 1,Fully Agree 2
You can do this using a calculated column ,that assigns a number to each category: 

LikertValue =
SWITCH(
[YourColumn],
"Fully Disagree", 1,
"Disagree", 2,
"Neutral", 3,
"Agree", 4,
"Fully Agree", 5
)
Now create a measure to calculate the average Likert score:

 AvgLikert = AVERAGE(YourTable[LikertValue])

Use the AvgLikert measure as your value. This will show the average score, but still allows you to use category labels for context.

Hope this helps !!! 😊

 







Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors