Forum Discussion

vanessafvg's avatar
vanessafvg
Icon for Community Champion rankCommunity Champion
9 years ago
Solved

passing a calculated date parameter to multiple imports

what is the best way to calculate a date 2 years back, from the beginning of the current month and then pass that to a filter in all the tables you importing into a model.   Ive tried this but it d...
  • GilbertQ's avatar
    GilbertQ
    9 years ago

    Hi vanessafvg

     

    What you could potentially do is the following.

     

    In the Query Editor where you have created your Date going back 2 years, Convert this to a List.

     

    Then create a new Parameter, when it asks for the Suggested Values, change this in the Drop Down to Query.

    This will then give you an option for which Query to use.

    You can now select the List that you converted above.

     

    Now that you have it set as a Parameter, you can simply use this Parameter in your filters.

     

    There is another way to do this, if it does not work, which is to manually create it in the Advanced Editor, but is a bit more complex. So if you can try the above suggestion first?