cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jamiefisher
Regular Visitor

DateTime -DistinctCount on Dates

I have a table with datetime field, I want to add a new measure to show totals per date in a visual and from this I also want a disctinct count on the dates in the table. Help appreciated.

 

1 REPLY 1
amitchandak
Super User
Super User

@jamiefisher , A date column without time, and then you can use that

 

Date = datevalues([Datetime])

 

 

measures

m1= distinctcount(Table[Datetime])

 

m2= distinctcount(Table[Date])

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!