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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
emteam162
Creator
Creator

Top 10

Hi,

How i can combine two condition for the top 4

 

Dim1Top4Exp2
a15%152
b12%125
c11%90
d 11%120

How i can have this

Dim1Top4Exp2
a15%152
b12%125
d11%120
c11%90

Many thanks

Said

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

To give GP% more weight in the sorting compared to the GP. I would have gone with 100, but since GP% is decimal number, I went with an even higher number. Depending on size of the GP and GP%, I would adjust up or down 10000.

View solution in original post

9 Replies
sunny_talwar
MVP
MVP

Are you looking for change of sort order?

emteam162
Creator
Creator
Author

yes, if i have Value of each item are equal then in my exemple i have item d and c are equal then i see second condition

(exp2) i take item how have more

sunny_talwar
MVP
MVP

What object are you using? Would it be possible to provide a sample to work with?

emteam162
Creator
Creator
Author

Here is an exemple

antoniotiman
Master III
Master III

You can use in Sort Tab

Sum(GP%)*10000+Sum(GP)

Regards,

Antonio

sunny_talwar
MVP
MVP

May be this as your sort expression:

Sum(Sales-COS)/Sum(Sales)*1000000-Sum(GP)

Capture.PNG

emteam162
Creator
Creator
Author

why you use  (*1000000)

sunny_talwar
MVP
MVP

To give GP% more weight in the sorting compared to the GP. I would have gone with 100, but since GP% is decimal number, I went with an even higher number. Depending on size of the GP and GP%, I would adjust up or down 10000.

emteam162
Creator
Creator
Author

Thanks its work