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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
irnm8dn
Post Prodigy
Post Prodigy

Aggregating by Date when Time Stamp Present - Please Help!

I am putting together a PBI report that tracks usage of a software application.  Each time a user logs in, I receive a date and time stamp.  I have added a column that associates the login with an integer of "1", expecting to sum it in my report. 

 

I am trying to summarize daily usage and the timestamp is unimportant for my dashboard.

 

Because of the timestamp, I seem to be prevented from summing the activty to just the date.  I have included a link to a small data sample.  

 

Existing Result:

3/18/2018 | John Smith | 1

3/18/2018 | John Smith | 1

3/18/2018 | John Smith | 1

3/18/2018 | John Smith | 1

Total                                 4

 

Desired Result:

3/18/2018 | John Smith | 4

 

I believe the issue is the time stamp, and me not knowing how to resolve the timestamp, is the issue.

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Couple different ways, easiest is to create a new column with a formula of:

 

Column = DATEVALUE([DateTime])

BTW, you don't need that column with all 1's and 0's in it, just use a COUNT aggregation. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

Couple different ways, easiest is to create a new column with a formula of:

 

Column = DATEVALUE([DateTime])

BTW, you don't need that column with all 1's and 0's in it, just use a COUNT aggregation. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Thanks - spot on.  Appreciate the information.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors