Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dynamic parameter

Is there a way to dynamically change a parameter value? I have a parameter "MaxDate" which needs to have yesterday's date. I have created a table with a single cell that contains yesterday's date...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Instead of using a paramter, I just created a table with a single cell that calculates the yesterday's date using the formula: Date.AddDays(Date.From(DateTime.FixedLocalNow()),-1)

     

    I then add this column to my original table, where I was initially using the parameter.
    Now that column updates as the above created table updates (everytime i refresh)