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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Basic set analysis question

Hi Experts,

I have a very simple set analysis question.

In the ordr table we have a filed  which stores the year value of the order ex. 2010, 2011, 2012, 2013 and so forth.

I am trying to get my set exprerssion dynamic and running into the following ptoblem

Original expression

sum({$<ORD_YR ={'2013'} >} AMT)   --> Works great

New one

sum({$<ORD_YR ={"= $(=num(year(Today(0))))"} >} AMT)   ---> Doesn't consider the set expression results are same as sum(AMT)

An alternate that works

sum({$<ORD_YR ={">= $(=num(year(Today(0))))"} >} AMT)    --> please note the >= comparison

So how do I use set expression for limiting the total to based on the current year value?

Thanks,

AP.

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Never mind removed the "=" sign and it worked..

new expression is

sum({$<ORD_YR ={"$(=(year(Today(0))))"} >} AMT)

View solution in original post

3 Replies
Not applicable
Author

Never mind removed the "=" sign and it worked..

new expression is

sum({$<ORD_YR ={"$(=(year(Today(0))))"} >} AMT)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

sum({$<ORD_YR ={"$(=(year(Today())))"} >} AMT)

Regards,

Jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Check with this

sum({$<ORD_YR ={"=$(=num(year(Today())))"} >} AMT)

OR

sum({$<ORD_YR ={$(=num(year(Today())))} >} AMT)


Regards,

Celambarasan