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

Resetting rank

hi,

I required the desired rank column in the given excel below.

At the month end date and max of the last month I need numbering in the descending order .

Please look into the excel for better understanding.

Thanks

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Perhaps this?


Table:
LOAD Date,
Category,
Product,
Flag
FROM
[Comm1.xlsx]
(ooxml, embedded labels, table is Sheet1);
Left Join
Load *, If(Flag<>0, AutoNumber(RecNo(), Product), '') as Dense_Rank Resident Table Order By Date desc;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

5 Replies
Anil_Babu_Samineni

Perhaps simply like

Table:
Load * From <Excel>;

Left Join(Table)

Load Date, Category, Flag, If(Flag<>0, RowNo()) as Desired Rank Resident Table Order By Date asc;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Sameer9585
Creator II
Creator II
Author

hi Anil,

 

Thanks for quick reply if there are two or more products then the number is not correct

Anil_Babu_Samineni

You meant as follows?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Sameer9585
Creator II
Creator II
Author

hi anil,

Please find the updated excel.

Anil_Babu_Samineni

Perhaps this?


Table:
LOAD Date,
Category,
Product,
Flag
FROM
[Comm1.xlsx]
(ooxml, embedded labels, table is Sheet1);
Left Join
Load *, If(Flag<>0, AutoNumber(RecNo(), Product), '') as Dense_Rank Resident Table Order By Date desc;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful