Discussion board where members can get started with Qlik Sense.
I have created a table and I calculated some values in one of the column. Now I want to put the calculated values in the following order, largest to smallest. Someone please help as I am new to qliksense.
Hi Taoufiq ZARRA,
Below is an example of what I am trying to achieve. By using rank function I was able to get column A through D (which are columns titled Product, Weight, etc). I was also able to get column F by doing rank(-) which gave me the rank in descending order. Now I am struggling with putting weight/3 in descending order (see what I want to accomplish in column E highlighted in red).
|Product||Weight||weight/3 (ascending order)||Rank of column C||Weight/3 in descending order||Rank of Column E|
I think you will not get but you can do it as separate tables because the values will be corresponding to the dimensions that are present in the table when you want to sort the same column in different sorting order it will affect the dimensions, so it is better to create separate tables for both ascending and descending.
Hope this helps
Thank you for your input. Each column is a section of a formula. My ultimate goal is to combine the columns (which is a formula) to create a KPI. The table was a way of knowing whether I was getting each section of the formula do what it is supposed to do. Do you know if I could perhaps do this "Weight/3 in descending order" as a variable? Would that work?
This is the formula I want to use as a KPI.
Div is the column titled Div in the table below.
For example, for k=1, the first iteration, would be [(2*1 - 1)*(ln(76.333333) + ln(1 - 78))]
note: ln(76.33333) is the Div at RankASC = 1 and ln(1-78), the 78 is the Div at RankASC = 9.
for k=2 we would have: [(2*2 - 1)*(ln(76.666667) + ln (1 - 78))]
for k=3 we would have: [(2*3 - 1)*(ln(77) + ln (1 - 77.666667))] and so on.
Then I sum up all of the iteration together.
I am aware I can use rowNo() to get Div but the dataset I am working on, I am not allowed to put Div in the ascending order. I have to use the rank # to get to the Div of my interest.
is it possible to propose something but at the load script level ?