show or hide parameters in ssrs 2016 based on a radio button selection.

show or hide parameters in ssrs 2016 based on a radio button selection.  I have a report that can show either all items by year or items by month.  I want a radio button that will show a year parameter if selected and show the month and year parameter if selected.  How can I achieve this?
dan hendersonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Arifhusen AnsariBusiness Intelligence Developer and AnalystCommented:

In SSRS we don't have feature to hide or show parameter based on selection of other parameter or radio button.
Based on you question what  i have understood is "You want one parameter, which allows you to select "Year" Or "Month" and based on that selection other parameter will be hidden of visible.

You can achieve in other way.

You can have one parameter with two option Year or Month and based on selection your second parameter values will be populated.

When you execute final query pass both parameter values to query and based on selection in first parameter, you can select where to apply filter using where clause.

I have attached sample report as well. Hope it will help you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.