Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mccook
Partner - Creator
Partner - 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
Partner - Creator
Partner - Creator
Author

thanks.

its_anandrjs

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