Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to find cpu usage at max date

Hello every one. i am trying to find cpu usage at max date. The dimensions are Host_name, Blade_name. i am expecting to see in bar chart.

  1.05 (last row)

Datecpu-0
10/3/2014 7:001.13
10/3/2014 9:001.16
10/3/2014 11:001.16
10/3/2014 13:001.17
10/3/2014 15:001.19
10/3/2014 17:001.16
10/3/2014 19:001.15
10/3/2014 21:001.11
10/3/2014 23:001.07
10/4/2014 1:001.04
10/4/2014 3:001.04
10/4/2014 5:001.06
10/4/2014 7:001.10
10/4/2014 9:001.15
10/4/2014 11:001.17
10/4/2014 13:001.17
10/4/2014 15:001.17
10/4/2014 17:001.16
10/4/2014 19:001.14
10/4/2014 21:001.11
10/4/2014 23:001.07
10/5/2014 1:001.05
10/5/2014 3:001.04
10/5/2014 5:001.04
10/5/2014 7:001.09
10/5/2014 9:001.14
10/5/2014 11:001.16
10/5/2014 13:001.17
10/5/2014 15:001.16
10/5/2014 17:001.15
10/5/2014 19:001.12
10/5/2014 21:001.09
10/5/2014 23:00
1.05

Thanks for your help.

5 Replies
Not applicable
Author

Try:

test:

load

FirstSortedValue(cDate,-cDate) as cDate,

FirstSortedValue(cpu,-cDate) as cpu;

LOAD date(date#(cDate, 'MM/DD/YYYY hh:mm'),'MM/DD/YYYY hh:mm') as cDate, cpu INLINE [

    cDate, cpu

    10/5/2014 15:00, 1.16

    10/5/2014 17:00, 1.15

    10/5/2014 19:00, 1.12

    10/5/2014 21:00, 1.09

    10/5/2014 23:00, 1.05

];

Hope this was helpful.

Thanks,

Singh

sujeetsingh
Master III
Master III

Angad have given the best way well you can calculate it by grouping and taking max date in script.

Not applicable
Author

Thanks a lot Sujeet, coming this from you really means a lot

Not applicable
Author

if i calculate the max date in a script and load the data. How it will work if the user pick a different date from a list box. May be let me rephrase my question, i see there are two things here:

1. by default show cpu utilization for max  date.

2. show cpu usage for a selection day/ week / month by blade.

anbu1984
Master III
Master III

Check this app