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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

Easy LOAD only with manual data

Hello!

I've fond out that I can't solve an esay issue

I need to add such calculation in my qlikview scrip code:

     IF(WEEKDAY(Today()) = 0, Today()-3, Today())

Can I use LOAD somehow withot actually loading an external data?

For example:

LOAD

     DATE(IF(WEEKDAY(Today()) = 0, Today()-3, Today()))          AS Date_Needed

;

My example will not work, because there is no Resident or a file for import. How can I dedine this parameter Date_needed in my scirp?

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try like:

LOAD

     DATE(IF(WEEKDAY(Today()) = 0, Today()-3, Today()))          AS Date_Needed

AutoGenerate 1;

View solution in original post

2 Replies
tresB
Champion III
Champion III

Try like:

LOAD

     DATE(IF(WEEKDAY(Today()) = 0, Today()-3, Today()))          AS Date_Needed

AutoGenerate 1;

sculptorlv
Creator III
Creator III
Author

Thank you !!