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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Set Analysis

Hello i need to let this script to be selection indipendent:

Count({<RICHIESTA_APERTURA={">=$(=(max(RICHIESTA_APERTURA)-6))<=$(=max(RICHIESTA_APERTURA))"}> }DISTINCT NUMERO_PROPOSTA)

How can i do?

Thanks

Marco

8 Replies
m_woolf
Master II
Master II

Isn't it simply: Count({1<..........

Anonymous
Not applicable

Use '1' as set identifier:

Count({1<RICHIESTA_APERTURA={">=$(=(max({1}RICHIESTA_APERTURA)-6))<=$(=max({1}RICHIESTA_APERTURA))"}> }DISTINCT NUMERO_PROPOSTA)

marco_puccetti
Partner - Creator
Partner - Creator
Author

And on this statement:

Num(Avg(Date(DT_APERTURA_CONTO) - Date(DT_RICHIESTA_APERTURA,'DD-MM-YYYY')),'00')

Thanks

Marco

sunny_talwar

Try this:


=Num(Avg({1} Date(Only({1} DT_APERTURA_CONTO)) - Date(Only({1} DT_RICHIESTA_APERTURA),'DD-MM-YYYY')),'00')

marco_puccetti
Partner - Creator
Partner - Creator
Author

Is it necessary the use of Only?

Marco

sunny_talwar

‌If you want to try without them.... You can.... See if without them makes sense, but then you won't be able to use {1} within date function. So try with and without them and see if it makes any difference or not  

marco_puccetti
Partner - Creator
Partner - Creator
Author

Thanks

Marco

sunny_talwar

If it worked, then I would request you to mark correct and helpful answers to close this thread.

Best,

Sunny