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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.