Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
MARCOSVR10
Contributor
Contributor

CRIAR RANK DOS VENDEDORES

Good afternoon

I am classifying the seller by ranking using the following expression below. But when I filter the seller, the ranking position is changing. I want the ranking position to be maintained even after selecting the seller. Any ideas on how to do this?

Soma(

AgGr(

Classificação(


SOMA({$ <EMPRESA = {"60", "61"}, [NEGÓCIO]= {"PECA"},TIPO_VENDEDOR={"INTERNO"}, NOM_PESSOA= {"=SOMA({$< [ANO_EMISSÃO_PED] = { $(= Máx([ANO_EMISSÃO_PED])-1)}>} QTD_PEDIDO)> 0"},

[ANO_EMISSÃO_PED]={$(=MAX( [ANO_EMISSÃO_PED]))}>} QTD_PEDIDO)

/

SOMA({$< [ANO_EMISSÃO_PED] = {$(=ONLY([ANO_EMISSÃO_PED])-1)},EMPRESA = {"60", "61"}, [NEGÓCIO]= {"PECA"}, TIPO_VENDEDOR={" INTERNO"}>} QTD_PEDIDO)


,4),NOM_VENDEDOR))

)

 

Labels (3)
4 Replies
David_Friend
Support
Support

@MARCOSVR10 please post in English thanks!

MatheusC
Specialist
Specialist

@MARCOSVR10 
Try ignoring the selection filter.

Rank(
{<NOM_VENDEDOR=>})

 Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
MARCOSVR10
Contributor
Contributor
Author

It didn't work even with the condition to ignore the seller filter

 

(SUM(

Aggr(

RANK( {< NOM_VENDEDOR= >}


SUM({$ <EMPRESA = {"60", "61"}, [NEGÓCIO]= {"PECA"},TIPO_VENDEDOR={"INTERNO"}, NOM_PESSOA= {"=SUM({$< [ANO_EMISSÃO_PED] = {$(= Max([ANO_EMISSÃO_PED])-1)}>} QTD_PEDIDO)> 0"},

[ANO_EMISSÃO_PED]={$(=MAX( [ANO_EMISSÃO_PED]))}>} QTD_PEDIDO)

/

SUM({$< [ANO_EMISSÃO_PED] = {$(=ONLY([ANO_EMISSÃO_PED])-1)},EMPRESA = {"60", "61"}, [NEGÓCIO]= {"PECA"}, TIPO_VENDEDOR={"INTERNO"}>} QTD_PEDIDO)


,4),NOM_VENDEDOR))

 

 

)

 

MatheusC
Specialist
Specialist

Perhaps with the expression below:
This way, even filtering the NAME_VENDEDOR field, it will not change the graph:

(
Sum({<NAME_VENDEDOR=>}
  Aggr(
     Rank({<NAME_VENDEDOR=>}

 

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!