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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Histogram with dynamic bins

Hi Experts,

 

I need to create a histogram of scores (ranging from 0 to 1), with selection of dynamic bins (as multiple of 0.025*, 4 selections - 0.025, 0.05, 0.075, 0.1), referring to the source How to create a dynamic histogram in Power BI with adjustable bins (datacornering.com) however i fail to do the same.

 

 

what if parameter with bin size :

ing2022_1-1669693824216.png

 

 

the chart do not look quite right...

ing2022_6-1669694035510.png

 

I tried to adjust some values in DAX but fail.....Might anyone could help? thank you

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

thanks this is finally resolved by manual hardcode some bin ranges in a new table

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

thanks this is finally resolved by manual hardcode some bin ranges in a new table

amitchandak
Super User
Super User

@Anonymous , create a column for the bin in table

 

example

switch( True(),

[column] <.25. "  0 - .25",

[column] <.5. " 25 - .5",

// add other

"GT 1" //default

)

 

and use of axis

 

for meausre consider

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.