Is the possibility of adding variable as data range for report filter.
I am able to create report filter with between instead of selecting the value from the object can variable or Universe object can be used. If possible can you please provide me details.
Thanks, I am planning to schedule the report so prompt is not an option. that is why I am looking for variable so it can calculated and used for date range.
The report query will have data for all period on shipment date but CustomerReqDate between last 12 months for example 2018 04 - 2019 03 for current month is need in the report. Only shipment date is mapped to our fiscal Calendar and all the report calculation is based on shipment date. But there is one user requirement for the report based on CustomerReqDate on rolling 12months. So changes on Universe will not be approved.
SELECT DATEDIFF(MONTH,Table.ShippingDate,CAST(GETDATE() AS DATE))
If ShippingDate was in September, that will give 6.
If you create the above without the SELECT as an object called, say, Months Since Shipped, you can have that in your query condition where Months Since Shipped between 0 and 12.
If you schedule this, you’ll always get data for the current month so far and the previous 12 months, i.e. March 1st 2018 to now
You can but the problem that you’ve got is that you’ll be bringing back all data forever and then filtering for just the last 12 months. If that doesn’t both you, it’s achievable.