Define variable in scenario
If you want to declare variables in dataiku in scenario and access them in project.
There is sequence in dataiku to declare variable.
(1) Define variable :- Where you can build logic or condition to create variable
Example
v1=100
(2) Set project variable steps: Assign v1 to another variable v2.
example :
v2-v1
(3) Execute and check v2 will automatically define Global variables.
If you want to take already define variable in Global variable and take as parameter in "Define variable"
var1 ----> variables["dt_param"]
(4)
If you have specific date and you want to get other date bases on on your given date in scenario then "Go to - Define Variable " create variable and use below code
var1-> inc(asDate(variables["dt_param"],'yyyy-MM-dd'),toNumber(concat('-',datePart(asDate(variables["dt_param"],'yyyy-MM-dd'),'Day'))),'day')
Comments
Post a Comment