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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors