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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Powerbi12399
Regular Visitor

Age Gender Population Pyramid keeps crashing

Hello All, i have the following measures:

  • Age bin
  • Male HC = CALCULATE(COUNTROWS(Sheet1), Sheet1[Gender for Insurance Coverage] = "Male")
  • Female HC =CALCULATE(COUNTROWS(Sheet1),Sheet1[Gender for Insurance Coverage] = "Female")

And every time I put the male HC and female HC into the stacked bar chart or the population pyramid visual that I downloaded from PBI visuals, there will be an Error fetching data for the visual (an unexpected exception occurred).

 

these measures are all under one data table could someone help me with this pls?

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Powerbi12399 

 

I can't see why you'd be getting that error form somethign so straight forward.  Can you supply your PBIX file so I can check it?

Have you tried creating a new file?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Powerbi12399 ,

 

We haven’t received an update from you in some time. Could you please let us know if the issue has been resolved?
If you still require support, please let us know, we are happy to assist you.

 

Thank you .

Anonymous
Not applicable

Hi @Powerbi12399 ,

 

I wanted to check if you had the opportunity to review the information provided. If you still require support, please let us know, we are happy to assist you.

 

Thank you.

Anonymous
Not applicable

Hi @Powerbi12399 ,

Thanks for reaching out to the Microsoft fabric community forum. 

 

Based on your scenario, the issue might be related to the data type, your measures, or the custom Population Pyramid visual. Please check that the Gender column for Insurance Coverage is set to Text and doesn't contain blanks or unexpected values, as these can cause issues with visuals.

Your measures appear correct, but make sure the filter in CALCULATE matches the text in your column exactly. Try using the same measures in a standard Stacked Bar Chart to see if the problem persists; if it works, the issue may be with the custom visual. You could also recreate the measures and visual in a new PBIX file to rule out caching or model-specific problems.

If the error continues, sharing a sample PBIX file as menationed by @PhilipTreacy and @Praful_Potphode  with similar structure (with sensitive data masked) may help with further troubleshooting. This process should help determine whether the problem lies with the data, the measures, or the visual itself.

 

Thank you.

Praful_Potphode
Super User
Super User

Hi @Powerbi12399 ,

 

Please share the sample pbix file for reference.

From what it looks like, it could be measure issue.check the data type of column used in measure.

 

Please give kudos or mark it as solution once confirmed.

 

Thanks and Regards,

Praful

PhilipTreacy
Super User
Super User

Hi @Powerbi12399 

 

I can't see why you'd be getting that error form somethign so straight forward.  Can you supply your PBIX file so I can check it?

Have you tried creating a new file?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.