Forum Discussion

ERIC_A's avatar
ERIC_A
Helper II
3 years ago

Sum Distinctcount per Timestamp

Hello,

I am trying to make a DAX to sum the distinct counts of Names per timestamp and display the result  per hour. See the example below

 

 

assignedScoreDateOfAnalysis-DateDateOfAnalysis-Hour
A10.00%7/25/2023 0:001899-12-30 15:04:00
B10.00%7/25/2023 0:001899-12-30 15:04:00
C125.00%7/25/2023 0:001899-12-30 15:04:00
D100.00%7/25/2023 0:001899-12-30 15:04:00
E50.00%7/25/2023 0:001899-12-30 15:04:00
G60.00%7/25/2023 0:001899-12-30 15:04:00
H70.00%7/25/2023 0:001899-12-30 15:04:00
I110.00%7/25/2023 0:001899-12-30 15:04:00
J25.00%7/25/2023 0:001899-12-30 15:04:00
K10.00%7/25/2023 0:001899-12-30 15:04:00
L45.00%7/25/2023 0:001899-12-30 15:04:00
M40.00%7/25/2023 0:001899-12-30 15:04:00
N10.00%7/25/2023 0:001899-12-30 15:04:00
O50.00%7/25/2023 0:001899-12-30 15:04:00
P50.00%7/25/2023 0:001899-12-30 15:04:00
C125.00%7/25/2023 0:001899-12-30 15:28:54
D100.00%7/25/2023 0:001899-12-30 15:28:54
G110.00%7/25/2023 0:001899-12-30 15:28:54
H70.00%7/25/2023 0:001899-12-30 15:28:54
I60.00%7/25/2023 0:001899-12-30 15:28:54
J25.00%7/25/2023 0:001899-12-30 15:28:54
K10.00%7/25/2023 0:001899-12-30 15:28:54
L45.00%7/25/2023 0:001899-12-30 15:28:54
M40.00%7/25/2023 0:001899-12-30 15:28:54
N10.00%7/25/2023 0:001899-12-30 15:28:54
O60.00%7/25/2023 0:001899-12-30 15:28:54
P60.00%7/25/2023 0:001899-12-30 15:28:54
C125.00%7/25/2023 0:001899-12-30 15:53:37
D100.00%7/25/2023 0:001899-12-30 15:53:37
F50.00%7/25/2023 0:001899-12-30 15:53:37
G160.00%7/25/2023 0:001899-12-30 15:53:37
H70.00%7/25/2023 0:001899-12-30 15:53:37
I60.00%7/25/2023 0:001899-12-30 15:53:37
J25.00%7/25/2023 0:001899-12-30 15:53:37
K10.00%7/25/2023 0:001899-12-30 15:53:37
L45.00%7/25/2023 0:001899-12-30 15:53:37
M30.00%7/25/2023 0:001899-12-30 15:53:37
N50.00%7/25/2023 0:001899-12-30 15:53:37
O10.00%7/25/2023 0:001899-12-30 15:53:37
P60.00%7/25/2023 0:001899-12-30 15:53:37

 

 

The result I get in PBI with the formula  EngineerPerDoA = sumx(values(imtScoreData[DateOfAnalysis-Hour]),DISTINCTCOUNT(imtScoreData[assigned]))  I get the correct result per timestamp 15, 12 and 13.

 

 

 

Now when I want to display this per hour, I get 48 as a result instead of 40

How can I make a formula to sum those 15,12,13 values to display the 40 in my hour bin layout ?

 

thank you 

 

No RepliesBe the first to reply