Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Pragya
Creator
Creator

heat map on time of the day and day of the week

I was working on the heat map and

my first dimension is

day of the week on x-axis

day([patientarrivaldate]) as [arrivalday]

my second dimension is

time of the day on y-axis

hour([arrivaltime])& ':00-' ([arrivaltime]) +1 &':59' as [arrival time]

My aim is to get 00:00 - 00:59, 01:00 - 01:59, 02:00 - 02:59 etc for 24 hours

 

Measure is no. of patients arrival in the hospital

count(admission number)

any help will be appreciated.

Thanks

Labels (1)
1 Reply
Anil_Babu_Samineni

Create field in the script and use it as

If(Hour(arrivaltime)>='00' and Hour(arrivaltime)<'01', '00:00-00:59',
If(Hour(arrivaltime)>='01' and Hour(arrivaltime)<'02', '01:00-01:59',
If(Hour(arrivaltime)>='02' and Hour(arrivaltime)<'03', '02:00-02:59', ...)))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful