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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.