Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator III
Creator III

Fixing Variable in Script

Hi all,

Couldn't find a solution to fix a Variable in load editor. Tried with let, set, put it in bracked, even formated in text, but the variable in the app would not stay static. The output is a date, not a dimension. 

Set vP = Date(Floor(RangeMax(Date(Max(Field1)), Date(Max(Field2)))));

Any idea?

Thanks.

 

Tags (1)
Labels (1)
1 Solution

Accepted Solutions
Highlighted
Partner
Partner

Re: Fixing Variable in Script

Hi

Try this

Date(Floor(RangeMax((Max({1}Field1)),(Max({1}Field2)))))

Hope this helps

Thanks

View solution in original post

4 Replies
Highlighted

Re: Fixing Variable in Script

Try this

LET vP = '=Date(Floor(RangeMax(Date(Max(Field1)), Date(Max(Field2)))))';

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Highlighted
Partner
Partner

Re: Fixing Variable in Script

Hi

Try this

Date(Floor(RangeMax((Max({1}Field1)),(Max({1}Field2)))))

Hope this helps

Thanks

View solution in original post

Highlighted
Creator III
Creator III

Re: Fixing Variable in Script

Thanks   , but same behaviour, variable is still dynamic

Highlighted
Creator III
Creator III

Re: Fixing Variable in Script

Thanks Kashyap, that worked!