Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
george55
Partner - Creator III
Partner - 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.

 

Labels (1)
  • SaaS

1 Solution

Accepted Solutions
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Try this

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

Hope this helps

Thanks

Thanks and Regards
Kashyap.R

View solution in original post

4 Replies
Anil_Babu_Samineni

Try this

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

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Try this

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

Hope this helps

Thanks

Thanks and Regards
Kashyap.R
george55
Partner - Creator III
Partner - Creator III
Author

Thanks   , but same behaviour, variable is still dynamic

george55
Partner - Creator III
Partner - Creator III
Author

Thanks Kashyap, that worked!