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
javedbh
Helper II
Helper II

Histogram visual

I downloaded histogram custom visual and sample from this url:

https://app.powerbi.com/visuals/

 

It seems that the visual removes the duplicates from the data i.e. gets distinct values and then creates bins and count items against each bin. This is clearly visible with the “Students exam result” page in the sample. I also tried this visual with my own data and noticed the same behavior. I think duplicates values should not be removed.

 

I have mailed the author about the problem and waiting for the reply. If it is fixed then it would be great.

 

*** or ***

 

Is there anybody that can help me achieve the same chart with with the existing/custom visual, any script or sample etc. ??

 

 

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@javedbh have you tried Count instead of Count (Distinct0 ?

View solution in original post

2 REPLIES 2
ankitpatira
Community Champion
Community Champion

@javedbh have you tried Count instead of Count (Distinct0 ?

@ankitpatira Previously I overlooked the "Frequency" thing because I didn't need it. I added required column under "Values" and it do not provide any option to use a function. However when I added the same column under "Frequency" and used "Count" (Not "Count Distinct") and it worked.

 

Thanks for pointing out.

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.