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: 
Tommmy
Contributor III
Contributor III

current year / current month

Hi experts

The following code works fine:

if([Product]<>'', Sum({<Month={'Aug'},Year={'2022'}>} [Quantity]), 0)

This formula doesn't work, any ideas?

if([Product]<>'', Sum({$<Month={"$(={month(today()))"},Year={"$(={year(today()))"}>} [Quantity]), 0)

Thank you, Tom

1 Solution

Accepted Solutions
Or
MVP
MVP

{$<Month={"$(=month(today()))"},Year={"$(=year(today()))"}>}

There's excess '{' in each of your formulas for month and year.

View solution in original post

1 Reply
Or
MVP
MVP

{$<Month={"$(=month(today()))"},Year={"$(=year(today()))"}>}

There's excess '{' in each of your formulas for month and year.