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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Count Average per User

Hi,

 

I have 10 participants in a survey and I want to calculate the average per user.

This number I want to be a whole number so I can count the distribution of the participants from 1-5.

 

For instance: Below all 10 participants are 3 in the scale of 1-5. How can I count the participants being 3 so I can show that there's 10 participants in '3'?

Xilitor01_0-1633953016127.png

 

I have made this calculation:

Xilitor01_0-1633953139032.png

 

Edit:
I might be uncelar but I want a bar like below:

Xilitor01_0-1633953952062.png

 

I hope you can help 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

I think Avg and GenCal are all measures. I think you can try Round function to get whole number. 

My Sample:

1.png

AvgGen = AVERAGE('Table'[Gen])
GenCalc = ROUND([AvgGen],0)

Result is as below.

2.png

Then create a table from 1 to 5 and we need to add this column into X axis in column chart.

X axis = 
GENERATESERIES(1,5,1)

Try my measure to count GenCalc.

Measure = 
COUNTAX(FILTER(VALUES('Table'[User]),[GenCalc]=MAX('X axis'[Value])),[User])

Result is as below.

3.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , This means you need segmentation ,

 

Create a table

bucket = generateseries(1,5,1)

 

Then create a measure

 

var _tab = addcolumns(summarize('Table','Table'[participants ID],), "GenCalb",[GenCal])
return
countx(filter(_tab, [GenCalb] = max(bucket[Value])),[_1])

 

refer for more details

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

It will not make me make a return:

Xilitor01_0-1633956492109.png

 

Anonymous
Not applicable

Hi @Anonymous 

I think Avg and GenCal are all measures. I think you can try Round function to get whole number. 

My Sample:

1.png

AvgGen = AVERAGE('Table'[Gen])
GenCalc = ROUND([AvgGen],0)

Result is as below.

2.png

Then create a table from 1 to 5 and we need to add this column into X axis in column chart.

X axis = 
GENERATESERIES(1,5,1)

Try my measure to count GenCalc.

Measure = 
COUNTAX(FILTER(VALUES('Table'[User]),[GenCalc]=MAX('X axis'[Value])),[User])

Result is as below.

3.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors