Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
alvarezog
Contributor II
Contributor II

Group by day using date-time field

I have a date-time field that I want to group by day in my load script using GROUP BY , however, it is not working properly because of the time portion of the data. I have tried trimming the date using MID or FLOOR but these functions can't be used after the GROUP BY statement.

alvarezog_0-1667418271192.png

This is what I have so far but it is not working:

Actual_Dates:
LOAD
Date("Actual OK Date") AS Actual_Date,
Count(Date("Actual OK Date")) AS Count_Actual_Date
FROM [Report.xls]
(biff, embedded labels, table is [Table1])
GROUP BY Date("Actual OK Date");

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Try using either Date(Floor("Actual OK Date")) or Date(DayName("Actual OK Date")) instead. Date() doesn't remove the timestamp aspect, it just provides formatting.

View solution in original post

2 Replies
Or
MVP
MVP

Try using either Date(Floor("Actual OK Date")) or Date(DayName("Actual OK Date")) instead. Date() doesn't remove the timestamp aspect, it just provides formatting.

alvarezog
Contributor II
Contributor II
Author

I got it to work with Date(DayName("Actual OK Date")) . Thank you @Or , appreciate it!