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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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