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: 
mphekin12
Specialist
Specialist

Using Variable in Set Analysis

Hello,

I am trying to get a count of cases based a two variables that the end users set.  I have tried several variations of the following formula:

count({$<($(vEndField)-$(vStartField))={'>0'}>}distinct CASE_NUMBER)

I cant seem to get this work.  Any ideas?

Thank you!

1 Solution

Accepted Solutions
sunny_talwar

May be try this:

Count(DISTINCT {<CASE_NUMBER = {"=$(vEndField) - $(vStartField) > 0"}>} CASE_NUMBER)

View solution in original post

5 Replies
Anonymous
Not applicable

HI,

Try this:

count({$<($(=($(vEndField)-$(vStartField))))={'>0'}>}distinct CASE_NUMBER)

sunny_talwar

May be try this:

Count(DISTINCT {<CASE_NUMBER = {"=$(vEndField) - $(vStartField) > 0"}>} CASE_NUMBER)

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Can you explain using some example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
mphekin12
Specialist
Specialist
Author

Sorry sbobbyraj but your solution didn't work.  Thanks for the help!

mphekin12
Specialist
Specialist
Author

Thanks Sunny, your solution seems to be working for me!