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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
yoganantha321
Creator II
Creator II

Error in set expression

I have been using this expression and it is throwing error anybody can help me..........

=Sum({<Num(Month(Date(Date#(Month,'MMM'),'MM')))={">$(=Num(Month(Today())))"}>} Value)

1 Solution

Accepted Solutions
pooja_prabhu_n
Creator III
Creator III

Hi,

That expression is working for me

PFA

Thanks,

Pooja

View solution in original post

5 Replies
pooja_prabhu_n
Creator III
Creator III

Hi,

with reference to your thread expression required

Below expression is working fine for me with the sample data.

for loading script:

Num(Month(Date(Date#(Month,'MMM'),'MM'))) as Temp

Expression:

=Sum({<Temp={"<=$(=Num(Month(Today())))"}>} Value)

You can not use Num(Month(Date(Date#(Month,'MMM'),'MM'))) directly in set analysis.


What is the issue your facing with the below expression:

=Sum({<Temp={"<=$(=Num(Month(Today())))"}>} Value)


Thanks,

Pooja

yoganantha321
Creator II
Creator II
Author

Hi Pooja,

For

Current Month

=Sum({<Temp={">$(=Num(Month(Today())))"}>} Value) the value is 0.08

For future Month

=Sum({<Temp={"<=$(=Num(Month(Today())))"}>} Value) the value is 0.08

both it is showing same value

But i need as current Month is 0.02 and future month 0.06

pooja_prabhu_n
Creator III
Creator III

Hi,

That expression is working for me

PFA

Thanks,

Pooja

yoganantha321
Creator II
Creator II
Author

I will check it. Pooja

yoganantha321
Creator II
Creator II
Author

Thanks Pooja.

Its working fine.