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
powercolor
New Member

How to create a histogram that show occurrences of client names in a column between certain dates?

I have a table called Appoitments that has this format:

DateClient NameInvoice Total
08-Jan-2017Maria$100
15-Feb-2017Maria$50
23-Mar-2017Roland$75
11-May-2017Francisco$32
27-June-2017Francisco$98
16-Feb-2017Francisco$76
29-Mar-2017John$76
06-Jun-2017John$76
06-May-2017Fern$76
06-Jul-2017Apple$76
27-Jan-2017Norman$76

 

What I would like is to create an histogram that have bins that represent the occurance of clients between certain dates.

For example, if I set my slice date from 01-Jan-2017 to 07-Aug-2017, I would like to have the folowing histogram:

 

Number of client occurences (bins)count
14
22
31

 

I tried create a new table using the groupby feature but it didn't work as it removes the date and the slice was not working anymore.

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @powercolor,

If you want to create a histogram visual, you must add the column as Values level, you can create a group by table using the formula:

Table = SUMMARIZE(Appoitments,Appoitments[Client Name],"Number of client occurences (bins)",COUNTA(Appoitments[Client Name]))

1.PNG

While the table will not be automatical based on certain dates selected in slicer. Please see the knowledge base here.

If you want to get the Number of client occurences (bins) by measure, it can not be used as value in histogram chart. So we can not get the expected result as what you want. Thanks for understanding.

Best Regards,
Angelia


 

View solution in original post

2 REPLIES 2
v-huizhn-msft
Employee
Employee

Hi @powercolor,

If you want to create a histogram visual, you must add the column as Values level, you can create a group by table using the formula:

Table = SUMMARIZE(Appoitments,Appoitments[Client Name],"Number of client occurences (bins)",COUNTA(Appoitments[Client Name]))

1.PNG

While the table will not be automatical based on certain dates selected in slicer. Please see the knowledge base here.

If you want to get the Number of client occurences (bins) by measure, it can not be used as value in histogram chart. So we can not get the expected result as what you want. Thanks for understanding.

Best Regards,
Angelia


 

Anonymous
Not applicable

@powercolor

 

You don't really need the dates, do you? If you want to make a histogram based on clients occurences?

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.