Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This is my first app with Qlik. I am trying to create a chart where I can see the Hour of the day where I had the max Count. To calculate the max Count first I have to aggregate the Sum of count for each hour.
What kind of chart can be used to achieve this? Or How can I manipulate the data before using it in the chart?
My data looks like this. Here for example rows 2 to 6 contains the count for hour 8. I need to sum by hour and find the max for each date.
I would like to see an output something like this. Where the dot represent the hour of the day that has max count.
I don't see in Sense graphics with point instead of line,
so this one should wotk :
as dimension :
StartDate
as Measures :
X-axis : only(StartDate)
Y-axis : expression above
regards
Hi,
could you share your data sample as xlsx please ?
regards
Here is the sample data
https://drive.google.com/file/d/1GTTmNBQlygT6jAYtJrVCAgb4AWVB_YOS/view?usp=sharing
Hi,
first in script, add a field StartH as Hour(StartTime)
then in front :
graph with StartDate as dimension
and expression :
FirstSortedValue(total <StartDate> StartH,aggr(sum(Count),StartDate,StartH))
thank's for the sample !
correction !!
I allways forget : firstsortedvalue gives the min, must change sign to have the max :
FirstSortedValue(total <StartDate> StartH,-aggr(sum(Count),StartDate,StartH))
(minus sign before aggr(sum
so it's better :
Thanks Olivier.
So both my X and Y axis will be a Dimension right? Which Chart Type should by using here?
I don't see in Sense graphics with point instead of line,
so this one should wotk :
as dimension :
StartDate
as Measures :
X-axis : only(StartDate)
Y-axis : expression above
regards