Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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.