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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ERIC_A
Helper II
Helper II

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.

 

 

ERIC_A_0-1690391868921.png

 

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

ERIC_A_1-1690391978615.png

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

 

thank you 

 

0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.