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
claireberry
Helper I
Helper I

Average of percents calculation incorrect in bar graph

Thanks for your attention. The average of a column with percentages in the y-axis field for a clustered column chart shows incorrect value. The below image shows the average calculation. But when I filtered the column with percentage values, I get a number slightly larger than what is shown in the graph. The actual average of these values is 42.4%, but the column chart shows 36%

claireberry_1-1751033072941.png

 

claireberry_0-1751032691784.png

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @claireberry 

It’s difficult to fully understand the issue from the textual description, and the screenshot does not clearly demonstrate the data structure or how the average is being calculated. To provide a precise solution, I recommend sharing the PBIX file via a public cloud (e.g., OneDrive or Google Drive) and including a link.

As a general rule, when working with percentages, dragging a percentage column directly into the Y-axis is not advisable. Instead, use a DAX measure that dynamically adjusts calculations based on the hierarchy level using functions like:
ISINSCOPE(), HASONEVALUE(), or HASONEFILTER().

Example :
Avg_Percent :=
IF (
ISINSCOPE('Table'[State]),
AVERAGE('Table'[Percent]),
DIVIDE(SUM('Table'[Numerator]), SUM('Table'[Denominator]))
)

You can also take a look at the linked videos :
https://www.youtube.com/watch?v=So6vr3mTHsA

https://www.youtube.com/watch?v=ek13VBQQWks&t=109s

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

v-veshwara-msft
Community Support
Community Support

Hi @claireberry ,

Thanks for reaching out to Microsoft Fabric Community.

Thanks to @Ritaf1983 and @MFelix  for the response and explanation.

In addition to what's already shared, this kind of mismatch is often due to how visuals aggregate values at different levels.

For example, visuals like clustered column charts may compute the average based on the grouped data points shown (like per category), whereas a table or card might calculate the average across all rows, giving equal weight to each.

To correct this behavior and ensure consistency across visuals, you can use functions like AVERAGEX to align the results as needed.

Similar discussion: Solved: Average is incorrect.... between the bar graph ave... - Microsoft Fabric Community

 

To reproduce this and assist further, could you share a sample PBIX (without any sensitive data).

 

Hope this helps. Please reach out for further assistance.

If any response helped, please consider marking it as Accepted Solution to assist others with similar queries.

Thank you.

View solution in original post

6 REPLIES 6
v-veshwara-msft
Community Support
Community Support

Hi @claireberry ,
Just wanted to check if the responses provided were helpful.  If further assistance is needed, please reach out and share sample data or .pbix file to assist better.
Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @claireberry ,
We wanted to kindly follow up regarding your query. If you need any further assistance, please reach out. Please share small sample dataset or mock PBIX file to assist better.
Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @claireberry ,

Just checking in to see if you query is resolved. If further assistance is needed, please reach out. Please share small sample dataset or mock PBIX file to assist better.

Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @claireberry ,

Thanks for reaching out to Microsoft Fabric Community.

Thanks to @Ritaf1983 and @MFelix  for the response and explanation.

In addition to what's already shared, this kind of mismatch is often due to how visuals aggregate values at different levels.

For example, visuals like clustered column charts may compute the average based on the grouped data points shown (like per category), whereas a table or card might calculate the average across all rows, giving equal weight to each.

To correct this behavior and ensure consistency across visuals, you can use functions like AVERAGEX to align the results as needed.

Similar discussion: Solved: Average is incorrect.... between the bar graph ave... - Microsoft Fabric Community

 

To reproduce this and assist further, could you share a sample PBIX (without any sensitive data).

 

Hope this helps. Please reach out for further assistance.

If any response helped, please consider marking it as Accepted Solution to assist others with similar queries.

Thank you.

Ritaf1983
Super User
Super User

Hi @claireberry 

It’s difficult to fully understand the issue from the textual description, and the screenshot does not clearly demonstrate the data structure or how the average is being calculated. To provide a precise solution, I recommend sharing the PBIX file via a public cloud (e.g., OneDrive or Google Drive) and including a link.

As a general rule, when working with percentages, dragging a percentage column directly into the Y-axis is not advisable. Instead, use a DAX measure that dynamically adjusts calculations based on the hierarchy level using functions like:
ISINSCOPE(), HASONEVALUE(), or HASONEFILTER().

Example :
Avg_Percent :=
IF (
ISINSCOPE('Table'[State]),
AVERAGE('Table'[Percent]),
DIVIDE(SUM('Table'[Numerator]), SUM('Table'[Denominator]))
)

You can also take a look at the linked videos :
https://www.youtube.com/watch?v=So6vr3mTHsA

https://www.youtube.com/watch?v=ek13VBQQWks&t=109s

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
MFelix
Super User
Super User

Hi @claireberry ,

 

This can occur due to different things, depending on the way you have your model built and the visualization.

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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