Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
dberkesacn
Partner - Creator III
Partner - Creator III

Basic Set Analysis

Hi Guys,

pls help me in this simple set analysis, =sum({<Date={">2017.02.01"}>}Value), why this is not working?

Would like to filter the date - global date format in the begging of the script is SET DateFormat='YYYY.MM.DD';.

Thanks,

D

1 Solution

Accepted Solutions
oscar_ortiz
Partner - Specialist
Partner - Specialist

Check this out.  I've modified the script slightly to ensure that your date is using the proper format.  Preceding load on your original inline load statement.

LOAD

  *,

  Date(Date#(Date,'YYYY.MM.DD')) as CheckDate

;

265097.PNG

Good luck

Oscar

View solution in original post

23 Replies
prma7799
Master III
Master III

Please check date format

=sum({<Date={">01.03.2017"}>}Sales_Total )

This is working in my app.

MK_QSL
MVP
MVP

What is the format of your Date field?

Not applicable

try to use date format of your "Date" data field in set comparision.

Frank_Hartmann
Master II
Master II

what format has your "Date" field?

maybe:

sum({<Date={'>2017.02.01'}>}Value)


hope this helps

dberkesacn
Partner - Creator III
Partner - Creator III
Author

it come from the initial global variable SET DateFormat='YYYY.MM.DD'; and the source data has also this structure.

prma7799
Master III
Master III

Could you please share some sample app

sasikanth
Master
Master

HI

Try this

=SUM({<Date={"> $(=num(Dat#( '2017.02.01','YYYY.02.01'))) "}>}Value)

dberkesacn
Partner - Creator III
Partner - Creator III
Author

Yes.

Frank_Hartmann
Master II
Master II

see attached file

hope this helps