Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

display the top 3 of a table in focus of some fields

Hello

I would like to display the top 3 fields from the table %entities_name according to the #tales_resolution_mois, #taux_resolution_delais and #taux_reparation_interne_mois.

what should I do please?

Thank you for your responses.

16.PNG

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

if your expression is this:

=if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))


try this to be able to filter on top 3 values:


=if(Rank(

if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))

)<=3,


if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))


)

PS: you should apply the rank() function on every expression you have on your table


View solution in original post

10 Replies
olivierrobin
Specialist III
Specialist III

hello

you can use limits on dimensional limits tab

YoussefBelloum
Champion
Champion

Hi,

if you want the same table as the image attached above but only with top 3 entities depending on what you described above, you can try this on every expression of your table (use entities name as dimension):

=if(rank(sum(taux_resolution_mois)+sum(taux_resolution_delaits)+sum(taux_reparation_interne_mois))<=3,

your_expression

)

Anonymous
Not applicable
Author

This is what I have, how do I write?

17.PNG

And my expression for this field  is : =if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))

YoussefBelloum
Champion
Champion

if your expression is this:

=if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))


try this to be able to filter on top 3 values:


=if(Rank(

if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))

)<=3,


if(Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %')<=0,0,Num(Avg(#taux_realisation_maintenances_mois)/100,'##.00 %'))


)

PS: you should apply the rank() function on every expression you have on your table


Anonymous
Not applicable
Author

Hi Franck Wetie,

You can also try this Expression for displaying top 3

Ex:-

Firstsortedvalue(FieldName, Sales, -3)

In this based on Field name it will pic top 3 sales the same thing you can apply similar to your table.

Thanks Regards,

Ramesh.P 

Anonymous
Not applicable
Author

that not work

shansundar
Partner - Creator
Partner - Creator

Dimension limits will work but you have add one additional expression which is sum of all three expression and promote it to the first and then limit the values accordingly and hide this dummy column from the presentation tab.

Hope this resolves your issue. Let me know if it is not clear.

Thanks,

Shan S

Anonymous
Not applicable
Author

Thank you Rousself Belloum it work.

YoussefBelloum
Champion
Champion

you're welcome, good luck