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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
mccook
Creator
Creator

Creating a Table with only Calculated Fields

Hi,

I want to create a table like below (in reality, a little more complex):

TodayTomorrow
31/03/201401/04/2014

my attempt was:

Temp:

LOAD

  Today() as Today,

  Today()+1 as Tomorrow

;

This doesn't appear to work, I get no table at all.

Any advice welcome?

Cheers,


Dean

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Load

  Date(Today()) as Today,

  Date(Today()+1) as Tomorrow

AutoGenerate 1;

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Load

  Date(Today()) as Today,

  Date(Today()+1) as Tomorrow

AutoGenerate 1;

mccook
Creator
Creator
Author

thanks.

its_anandrjs
Champion III
Champion III

Load like this

Temp:

LOAD

  Today() as Today,

  Date(Today()+1) as Tomorrow

AutoGenerate 1;

Hope this helps

Not applicable

Hi,

The way I would tackle this is to set this as variables inside the load script.

LET vToday = Today();

LET vTomorrow = Today() + 1;

The reason I would use variables is because this figure changes only once a day and is not based of your data.

And then you use the variables inside the graph instead of the fields.

I have attached a sample qvw.

Regards,
Marius