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

How to show only the max field value in graph

Hi,

I have a dimension 'Hour', a dimension 'Computer' and for each combination of them a value, 'Cpu Usage'.

Now, if I draw a bar chart with Hour as the dimension and 'max("Cpu Usage")', everything works just fine: I get the max Cpu usage for each hour. The problem is that I want to get the name of the computer that has the max Cpu usage, besides its value.

¿How can I obtain that? I've tried a trillion of different things (ranks, aggrs, firstsortedvalue....) but I can't get it.

In table format, I would like something like:

Hour     Computer     Value

12:00     A               17

13:00     C               23

14:00     C               12

Where the value corresponds to the computer, being the max value.

Can anyone help please?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try an expression like

dual( FirstSortedValue( Computer, -Value) &': '&max(Value) , max(Value) )

View solution in original post

5 Replies
Anonymous
Not applicable

use max({<Hour=>Value)

swuehl
MVP
MVP

Try an expression like

dual( FirstSortedValue( Computer, -Value) &': '&max(Value) , max(Value) )

qlikmsg4u
Specialist
Specialist

like this?

Untitled.png

avinashelite

Simply way is to add one more expression as below:

Max(Value)&'-'&Computer

and uncheck the bar and check on the values on data points

isorinrusu
Partner - Creator III
Partner - Creator III
Author

Thank you swuehl‌ and everyone else.

Indeed, your solutions work, although as I was afraid, I asked the wrong question. The problem was a little more complex than this

What I wanted was to put the computer as a dimension and then show only the greatest value, as well as its min value and its average for each hour (and some more dimensions).

What I've finally done is to remove Computer as the dimension, show the max value using the FirstSortedValue, and show the min and max of that same computer using the FirstSortedValue in the Set Analysis.

Thanks!