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.
I have table of customers that has these data
CustomerID, DemandHour, PurchaseHour
1001 15 19
1002 03 07
1003 19 07
1004 23 19
1005 15 19
1006 23 16
1007 15 10
I want to find the count of customers of each hour
I want to graph them to look like this
How Can I do that ???
Appreciate your help.
Solved! Go to Solution.
Hi @AkrMus ,
You can create a table with 24 hours(0~24), then write two measure to check table records if records time field are same as current hour label.
PC = CALCULATE ( COUNT ( T0[CustomerID] ), FILTER ( ALLSELECTED ( T0 ), [PurchaseHour] = MAX ( 'Hour'[Value] ) ) ) DC = CALCULATE ( COUNT ( T0[CustomerID] ), FILTER ( ALLSELECTED ( T0 ), [DemandHour] = MAX ( 'Hour'[Value] ) ) )
Regards,
Xiaoxin Sheng
Hi @AkrMus ,
You can create a table with 24 hours(0~24), then write two measure to check table records if records time field are same as current hour label.
PC = CALCULATE ( COUNT ( T0[CustomerID] ), FILTER ( ALLSELECTED ( T0 ), [PurchaseHour] = MAX ( 'Hour'[Value] ) ) ) DC = CALCULATE ( COUNT ( T0[CustomerID] ), FILTER ( ALLSELECTED ( T0 ), [DemandHour] = MAX ( 'Hour'[Value] ) ) )
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
101 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |