Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting a Ranking Table

Hi

I am having another problem:

I am comparing power data from different machines. Therefore I want to make a ranking table which should look like this:

RankMachinePower Usage
1Machine C1100 Ws
2

Machine A

905 Ws
.........

My data contains all machines and their Power Usage over time, so I need to sum it up. But how do I get the rankings?

With kind regards,

Alex

1 Solution

Accepted Solutions
sunny_talwar

Is this what you are looking for? PFA

Best,

S

View solution in original post

6 Replies
sunny_talwar

You will have to use a rank function. Do you have a sample qvw file to work with? I am not exactly sure what are you trying to sum up??

Best,

S

morganaaron
Specialist
Specialist

Use the rank() function, use machine as your dimension, sum of power usage as an expression and then rank(sum(power usage)) as a second expression - sort by this to get in rank order!

Not applicable
Author

Thank you for the quick answers.

I uploaded a sample. Just ask if you need more informations.

My data contains a power value for every second. But what i want is a rank table for the complete power usage over time.

My data:

MachineTimePower
Machine A0.1453
Machine A 0.2460
Machine A0.3470
.........

@

sunny_talwar

Is this what you are looking for? PFA

Best,

S

sunny_talwar

I am actually was not sure what you Power Usage field is within the QlikView application. I am assuming it to be Leistung.

Best,

S

Not applicable
Author

That is exactly what I needed. Thank you very much!