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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Peony
Creator III
Creator III

Inline load and period calculation

Hi

I create a menu with which I will manage the periods for calculating data in the dashboard. To do this, I create such a table inline:

Period_Level:
LOAD * INLINE [
    Period_Level, Period_Calc,
    Today,		  'Num(Today())'	
    7Days,        'Num(Today()-6)'
    30Days,       'Num(Today()-29)'
    90Days,       'Num(Today()-89)'
];

Then I create a variable that I will use in the set analysis and get not the numeric period value as I expected, but just a string (see below)

What I get (in the expression preview)

no ok.png

I what I expected to see (in the expression preview)

ok.png

So, the question is why I can't get num value using Period_Calc field in the expression? Please, help to understand. 

1 Solution

Accepted Solutions
lorenzoconforti
Specialist II
Specialist II

You need to use $ sign expansion again. The first time you use it you bring in the field; the second time you evaluate what is included in the field

 

{"=$(=$(=Period_Calc))"}

View solution in original post

2 Replies
lorenzoconforti
Specialist II
Specialist II

You need to use $ sign expansion again. The first time you use it you bring in the field; the second time you evaluate what is included in the field

 

{"=$(=$(=Period_Calc))"}

Peony
Creator III
Creator III
Author

Lorenzo, thank you for help, it works!