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! Learn more

Reply
Anonymous
Not applicable

Binning the histogram and to display different legends in same graph

Hi everyone,

 

I am learning power bi and each day I learn a new thing. I am currently stuck with histogram custom visual. I currently have 4 different histogram to display the frequency distribution of each of the category. I want to show the all category in one graph as legends and have a bell curve instead of bars. I checked but couldn't find an option to show bell curve.

Also, is it possible to bin the bars explicitly. For example- the fisrt graph for A, the range is 0.03-4.68, 4.68-9.33 and so on. So, instead of having such numbers can we display whole numbers (0-5,5-10...) and this should be for all the categories.

 

histogram.PNG

 

Desired Graph- where each colour represents a category. 

Output.PNG

 

Sample data-

IDCategorynum
1C2.25
2C4.81
3A5.56
4C2.34
5C4.48
6A14.96
7A1.76
8C1.68
9C9.2
10C1.88
11C2.34
12B9.42
13A29.28
14A3.65
15C4.58
16A4.58
17C10.01
18A34.46
19C7.99
20C1.77
21A1.77
22C0.15
23A0.15
24A14.65
25C8.21
26C4.3
27C5.96
28C2.3
29C1.87
30C4.08
31C4.29
32C4.69
33C3.78
34A3.78
35C4.58
36C11.08
37A12.29
38A9.27
39C11.04
40A11.06
41C1.86
42A8.85
43C2.27
44A12.54
45A4.42
46B9.42
47B30.62
48B30.4
49B8.58
50D9.9
51B26.7
52B16.92
53B12.81
54D11.02
55B17.79
56B6.98
57B7.69
58B19.93
59B30.55
60B8.02
61D11.27
62B8.08
63B13.07
64D10.68
65B22.65
66B25.52
67D7.65
68B17.24
69D10.81
70D10.68
71B8.12
72B5.83
73B26.07
74D11.06
75D10.74
76D10.91

Any help would be much appreciated.

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Anonymous
Not applicable

Hi @harshnathani ,

 

I am currently able to bin the bars using below DAX and used a stacked column chart.  But I am not able to get around with having a bell curve as per my requirement. Thank you for sharing the links.

 

Range Ten = var temp= SUM(Table[Num]) return
if(temp<=5,"0-5",if(AND(temp>5,temp<=10),"5-10",if(AND(temp>10,temp<=15),"10-15", if(AND(temp>15,temp<=20),"15-20", if(AND(temp>20,temp<=25),"20-25", if(AND(temp>25,temp<=30),"25-30", if(AND(temp>30,temp<=35),"30-35",">35")))))))
 
Regards,
Supriya

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.