Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik community,
I am trying to group a time filed [start time] for appointments into different parts of the day. I was able to successfully create the categories in data manager however the new calculated field does not show the categories in the visualization pane. I have done dimensional grouping before and but it is not working this time. Is it because I am dealing with a time dimension? See my grouping below:
If(Match([StartTime],'8:00:00'),'First Appointment',
If(Match([StartTime],'8:15:00'),'First Appointment',
If(Match([StartTime],'8:30:00'),'Morning',
If(Match([StartTime],'8:45:00'),'Morning',
If(Match([StartTime],'9:00:00'),'Morning',
What I am doing wrong here?
Try creating the column in your load script:
LOAD StartTime, IF(MATCH(StartTime,'8:00:00','8:15:00'),'First Appointment', IF(MATCH(StartTime,'8:30:00','8:45:00','9:00:00'),'Morning')) AS TimeOfDay INLINE [ StartTime 8:00:00 8:15:00 8:30:00 8:45:00 9:00:00 ];
Result: