Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator II
Creator II

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
Highlighted
Specialist II
Specialist II

Re: Inline load and period calculation

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
Highlighted
Specialist II
Specialist II

Re: Inline load and period calculation

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

Highlighted
Creator II
Creator II

Re: Inline load and period calculation

Lorenzo, thank you for help, it works!