Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Danri94
Contributor III
Contributor III

Formula in inline-load

Hi everybody,

im an trying to use a Field (Monatsbeginn) in my inline-load, i have created in the load-Statement above.

Can anybody help me?


LOAD *,
date(monthstart(today())-1) as Monatsbeginn
INLINE [
ID, Text_DE, Text_EN
1, Deckungsbeitrag operativ zum "Monatsbeginn", profit margin operational at the "Monatsbeginn"]

 

As a result i want to use the calculated date in my translation.

Thank you 🙂

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

I think you may try it in this way:

LET var = date(monthstart(today())-1);

LOAD * INLINE [
ID, Text_DE, Text_EN
1, Deckungsbeitrag operativ zum '$(var)', profit margin operational at the '$(var)'];

View solution in original post

3 Replies
maxgro
MVP
MVP

if I understand the question, you can use a preceding load in the script

 
T:
LOAD
*,
DATE(Monatsbeginn + 1) AS NewField    // example of using the calculated date
;
LOAD *, date(monthstart(today())-1) as Monatsbeginn INLINE [
ID, Text_DE, Text_EN
1, Deckungsbeitrag operativ zum "Monatsbeginn", profit margin operational at the "Monatsbeginn"]
;
marcus_sommer

I think you may try it in this way:

LET var = date(monthstart(today())-1);

LOAD * INLINE [
ID, Text_DE, Text_EN
1, Deckungsbeitrag operativ zum '$(var)', profit margin operational at the '$(var)'];

Danri94
Contributor III
Contributor III
Author

That works, thanks a lot!