I've got query called Date which has two parameters: Date, IfEndDate and NumberOfMonths and IfEndDate is true it counts [NumberOfMonths] months before entered date as StartDate, and entered date names as EndDate, and IfEndDate is false it counts [NumberOfMonths] months after entered date etc.
And I've got some queries which counts many other things, eg. how many deals do employees between entered days or how many customers bought chairs between these days.
Is there any option to enter Date, IfEndDate and NumberOfMonths in eg. 'How many deals' query and it'll retrieve StartDate and EndDate from Dates query?