Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Qlivkiew Experts,
I have this set of database:
I would like to create a straight table to show rank1 & rank2 's value based on a condition.
My condition is: if Type is = "O" and Rank1/Rank2 is not equal to blank or "17". Then show the value from Rank1/Rank2 with the frequency of that value as well.
My current expression for the rank is: =Aggr(Only({<Type={"O"},Rank1-={"" ,"17" }>} Rank1), Rank1)
and the expression for frequency is: count({<[Type] = {"O"},Rank1-={"","17"}>} [Rank1])
But this can only return me with the value shown in Rank1 column, and I would like to have a combination of 2 fields.
My desired outcome would be sth look like below:
May I know what is the correct syntax to achieve my desired outcome?
Attached Qlikview excel file for your reference.
Best Regards
QianNing
I would do this
=If(Rank <> 17, Count(If(Rank1 = Rank and Type= 'O', Type)) + Count(If(Rank2 = Rank and Type= 'O', Type)) )