Forum Discussion
Anonymous
9 years agoNot applicable
Query for parameter suggested values (global variable for entire project?)
We are trying to set global variables StartDate and EndDate that all queries can references as a filter. I would like to set StartDate to this TSQL formula SELECT DATEADD(MONTH, -12, DATEADD(MONT...
ankitpatira
9 years agoCommunity Champion
Anonymous Query dropdown doesn't let you write formulas there but only reference other queries. So in your model create another query that returns or contains value from your TSQL and then reference that query under Query section for Parameters.
- Anonymous9 years agoNot applicable
I created a new datasource with the Global Date Parameters for reference. It still won't let me enter in anything at all in the Query dropdown box. Is there another step I need to follow?
Thanks in advance