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

Last 7 days for the previous Year

Dear Qlikview user

I have the following expression, which give me the "OK" when in an expression builder, however when executed it has the following error message:

Error: Error in set modifier ad hoc element list: ',' or') expected

My expression is as follows:

=Count({$<FactDateNum={">=$(=AddYears(Today()-7,-1)<=$(=AddYears(Today()-1,-1)"}>}ID)

Any help or guidance would be greatly appreciated

Kind Regards

Helen

1 Solution

Accepted Solutions
sinanozdemir
Specialist III
Specialist III

Hi,

You are missing two parentheses

=Count({$<FactDateNum={">=$(=AddYears(Today()-7,-1))<=$(=AddYears(Today()-1,-1))"}>}ID)


Hope this helps.

View solution in original post

2 Replies
sinanozdemir
Specialist III
Specialist III

Hi,

You are missing two parentheses

=Count({$<FactDateNum={">=$(=AddYears(Today()-7,-1))<=$(=AddYears(Today()-1,-1))"}>}ID)


Hope this helps.

helen_pip
Creator III
Creator III
Author

Hello Sinan

Perfect! Thank you! I just saw so many brackets, I was unsure where the problem was

Thanks

Helen