Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Expression

Hello,

I have the following Set Analysis:

COUNT(DISTINCT ACCOUNT_ID)

/

COUNT({1<ACCOUNT_ID>}DISTINCT ACCOUNT_ID)

What I want is to add this (the underlined) to both COUNT functions:

COUNT ({$<ID_TIE_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)

Do you know how could I do it?

Thank you!

1 Solution

Accepted Solutions
its_anandrjs

Try

COUNT ( {$< ID_TIE_DATE# =  { " >= $(vDateFrom) <= $(vDateTo) " } >}  DISTINCT ACCOUNT_ID)

/

COUNT( {1<ACCOUNT_ID=, ID_TIE_DATE# =  { " >= $(vDateFrom) <= $(vDateTo) " } >}    DISTINCT ACCOUNT_ID)


What is your expected output?

View solution in original post

4 Replies
its_anandrjs

Try with

COUNT ( {$< ID_TIE_DATE# =  { " >= $(vDateFrom) <= $(vDateTo) " } >}  DISTINCT ACCOUNT_ID)


Not applicable
Author

Thanks, but how do I apply the ID_TIE_DATE# over the 2nd COUNT?

COUNT ({$<ID_TIE_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)

/

COUNT({1<ACCOUNT_ID>}DISTINCT ACCOUNT_ID)



its_anandrjs

Try

COUNT ( {$< ID_TIE_DATE# =  { " >= $(vDateFrom) <= $(vDateTo) " } >}  DISTINCT ACCOUNT_ID)

/

COUNT( {1<ACCOUNT_ID=, ID_TIE_DATE# =  { " >= $(vDateFrom) <= $(vDateTo) " } >}    DISTINCT ACCOUNT_ID)


What is your expected output?

Not applicable
Author

Thank you, I think this worked!

I was expecting to show a relative % considerating the ID_TIE_DATE# field from my Master Calendar.