Quantcast
Viewing all articles
Browse latest Browse all 217157

How to pass the date parameters in PQ Query?

I have created my date table dynamically using M and it spans 2 years back and 2 years forward.

I have a step in my query that creates a calculated column to identify all dates for the current fiscal year:

 

FYTD: if ([Calendar Date] > #date(2016, 3, 31) and [Calendar Date] < #date(2017, 4, 1)) then "FYTD" else null).

 

This is great, but I really don't want to set something up that is not on auto pilot. As a result, I have created 2 parameters, "CurrentFiscalStartDate" and "CurrentFiscalEndDate". (YAY!) 

 

I was not able to find documentation on this but feel this should be fairly easy for all you experienced gurus.

I would like to pass these 2 parameters in the above FYTD statement instead of using the static #date(2016...) dates. 

 

Can someone please help me on this ? I will definitely leave a solution point for you for those who come forward and try Image may be NSFW.
Clik here to view.
Smiley Happy


Viewing all articles
Browse latest Browse all 217157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>