Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

maintain values in dynamic selection

Hi .

I have a table where the HA PROD EJEC is displayed by campaign and year-month.

Captura.PNG

When I do not select any campaign, the HA PROD EJEC is displayed correctly by campaign in the table.


Captura.PNG

But when I select a campaign, the HA PROD EJEC is distorted.

Captura.PNG

Captura.PNG

Please help me maintain those values when I select any campaign.

attached qvw.

Greetings.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
5 Replies
jwjackso
Specialist III
Specialist III

Add the {1} in the beginning.  The first Sum() is based on the current selections.

$(=Sum( {1} Aggr(

sum( DISTINCT

{<CAMPAÑA={"$(='CAMP '&(Max(Num(Right(CAMPAÑA,4)-2))))"},COD_LOTE2-={''},CANT_REAL-={' '},BLOQ={'NULL'},DÍA=>}HECTAREA_PRODUCTIVA),VARIEDAD2,COD_LOTE2))

)

cristianj23a
Partner - Creator III
Partner - Creator III
Author

Hi Jerry.

It's fine but when I select jul18, it shows me the null value and when I do not select it has value.

Captura.PNG<

Captura.PNG

Thank you very much.

Greetings.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
jwjackso
Specialist III
Specialist III

CANT_REAL does not appear to be populated for Jul 2018

$(=Sum( {1} Aggr(

sum( DISTINCT

{<CAMPAÑA={"$(='CAMP '&(Max(Num(Right(CAMPAÑA,4)))))"},COD_LOTE2-={''},CANT_REAL-={' '},BLOQ={'NULL'},DÍA=>}HECTAREA_PRODUCTIVA),VARIEDAD2,COD_LOTE2))

)

Anil_Babu_Samineni

May be this?

$(=Sum( {1} Aggr(

sum( DISTINCT

{<CAMPAÑA={"$(='CAMP '&(Max(Num(Right(CAMPAÑA,4)))))"},COD_LOTE2-={''},CANT_REAL-={"=Len(CANT_REAL) = 0"},BLOQ={'NULL'},DÍA=>}HECTAREA_PRODUCTIVA),VARIEDAD2,COD_LOTE2)))

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
cristianj23a
Partner - Creator III
Partner - Creator III
Author

Hi Anil.

the code does not work

Greetings.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.