Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Using Date as VAR and Parameter Advanced Editor

Hi, I am trying to use the Var I have set for Startdate and Endate to set the parameter for my dataset from Parquet. The value for StartofPeriodx = 1/01/2022 12:00:00 PM The value for EndofPeriodx ...
  • d_gosbell's avatar
    4 years ago

    Anonymous wrote:

     

    I have currently used manual dates, how do I set the [Notification Date] >=StartDate and [Notification Date] <=EndDate

     


    As long as the variables are the same data type if should work exactly as you have it in your psuedo code.

     

    eg.

    Let
    
    StartDate = StartOfPeriodx,
    EndDate = EndOfPeriodx,
    Source = Parquet.Document(File.Contents("\\notifs.pq")),
    #"Filtered Rows" = Table.SelectRows(#"Renamed Columns", each [Notification date] >= StartDate and [Notification date] <= EndDate)