Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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.