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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
varneet_hundal
New Member

Incorrect Counts in Power BI Chart with Custom Hierarchy

Hi everyone,

 

I am creating a stacked column chart in Power BI using a manually created hierarchy on the X-axis (Team → Work Center → Shift Type). However, I’ve noticed that the Y-axis values are lower than expected — the row count seems to be smaller than it should be.

 

The measure on the Y-axis is a simple row count using COUNTROWS(). Both the measure and the hierarchy fields come from the same table, so I don’t believe this is related to the data model. There are also no blank values in the dataset.

 

Has anyone else encountered a similar issue or have any idea what might be causing this behavior? Any insights or troubleshooting suggestions would be greatly appreciated.

 

Thanks in advance!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @varneet_hundal ,

 

If everything is coming from the same table you should get the correct results, check if you have any filter applied at report, page or visualization level.

 

To check if everything is fine I would start by adding my calculation without any hierarchy to my page and see if the value is correct, then start adding levels of the hierarchy starting at the highest level, that way you can filter out the information in the table view and check if the number match.


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



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @varneet_hundal ,

 

If everything is coming from the same table you should get the correct results, check if you have any filter applied at report, page or visualization level.

 

To check if everything is fine I would start by adding my calculation without any hierarchy to my page and see if the value is correct, then start adding levels of the hierarchy starting at the highest level, that way you can filter out the information in the table view and check if the number match.


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



Hi @MFelix ,

 

Thank you so much for your help!

 

It turns out that one of the hierarchy levels had a filter applied, which caused the chart to display lower values than expected. Once I removed that filter, the numbers aligned correctly with the overall dataset.

 

Appreciate your guidance. It helped me troubleshoot and resolve the issue!

 

Best regards,

Varneet

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 Kudoed Authors