Forum Discussion
Report Builder parameters 3 months, 6 months, 9 months
Hello,
I am looking for the way to create a report where after selecting one parameters you can also select period like 3 months or 6, or 9 with 3 as a default. I tried to find it but I could not. Could you help me find sources or give some tips how can I build it?
- Anonymous5 years ago
Thanks, I actually wrote in the where statment and DATECOLUMN >= DATEADD(MONTH, cast(@Month as int), GETDATE()) and then add in the Month parameter 3,6,9 and it works.
2 Replies
- pleblancMicrosoft Employee
Can you clarify a bit? You can set a default value for the parameter (Add, Change, or Delete Default Values for a Report Parameter - SQL Server Reporting Services (SSRS) | Microsoft Docs).
- AnonymousNot applicable
Thanks, I actually wrote in the where statment and DATECOLUMN >= DATEADD(MONTH, cast(@Month as int), GETDATE()) and then add in the Month parameter 3,6,9 and it works.