Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Double rankings


Hi,

in attach, you can find a sample data related to a problem of ranking.

I have two tables in front end, with two different expressions and the same dimension (customer): I would like to create a table with customers' rankings

Thank you!

Elena

1 Solution

Accepted Solutions
sunny_talwar

2 Replies
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

CUSTOMER

Expression

For PURCHASE Rank

IF(Num(Rank(TOTAL SUM({<CUSTOMER = {"=SUM(PURCHASE)>0"}>}PURCHASE),4))<=Count(TOTAL{<CUSTOMER = {"=SUM(PURCHASE)>0"}>}DISTINCT CUSTOMER),

Num(Rank(TOTAL SUM({<CUSTOMER = {"=SUM(PURCHASE)>0"}>}PURCHASE),4)))

For TICKET Rank

IF(Num(Rank(TOTAL COUNT({<CUSTOMER = {"=COUNT(TICKET)>0"}>}TICKET),4))<=Count(TOTAL{<CUSTOMER = {"=SUM(TICKET)>0"}>}DISTINCT CUSTOMER),

Num(Rank(TOTAL COUNT({<CUSTOMER = {"=COUNT(TICKET)>0"}>}TICKET),4)))

sunny_talwar

This?

Capture.PNG