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

Using a variable in set anaysis.

I'm trying to subtract a value stored in a variable (vLookback) from a fixed value (6574) in my set analysis but the syntax I'm using is not working. Any ideas where I'm going wrong?

     Count({<[Days Old]={">=6574-$(vLookback)"}>}distinct MRN)

Thanks.

1 Solution

Accepted Solutions
sunny_talwar

Try this maybe:

Count({<[Days Old]={">=$(=6574-$(vLookback))"}>}distinct MRN)

Best,

Sunny

View solution in original post

5 Replies
sunny_talwar

Try this maybe:

Count({<[Days Old]={">=$(=6574-$(vLookback))"}>}distinct MRN)

Best,

Sunny

Not applicable

try like this.....

Count({<[Days Old]={">={6574}-$(vLookback)"}>}distinct MRN)

lsteere01
Contributor
Contributor
Author

Seems to work. Thanks!

lsteere01
Contributor
Contributor
Author

Doesn't seem to work. Thanks.

sunny_talwar

Awesome! I am glad it worked.

Best,

Sunny