Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Aravindvunnam
Contributor II
Contributor II

Using Variable in Set Expression

Hi 

i  am new to qlik sense .

i try to develop set expression to find count of particular field based on max date ,

vMaxRefData = 3/31/2023 but i am getting a strange values while using the variable in the attached screen short.

Aravindvunnam_0-1682604264891.png

can any one Help me on this & if know please write about the cause of issue that helps better in  under .

thanks in Advance,

Thanks;

Aaravind

  

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You have written the $() incorrectly. The date is being evaluated as an arithmetic expression 3 / 31 / 2023 = 4.783...

You should write it so the value is in single quotes like this:

REFERENCE_DATE={'$(vMaxRefDate)'}

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

 

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You have written the $() incorrectly. The date is being evaluated as an arithmetic expression 3 / 31 / 2023 = 4.783...

You should write it so the value is in single quotes like this:

REFERENCE_DATE={'$(vMaxRefDate)'}

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com