cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
carlosDash Advocate IV
Advocate IV

How do I add parameters to the report "Slicer" visualization?

 

I need to create parameters that I can use to query different date ranges from a massive SQL database. I understand parameter creation (create something like DateBegin, DateEnd, set type to "Date" etc.) but I'm unsure how to actually use them. For example, if I choose the "Slicer" visualization and add an existing "Date"-type column, it automatically gives me a date picker.

 

Can I do the same with parameters (set them to the "Slicer"-visual in the "Report"-view) or do I have to save the file as a template and prompt the user for the dates every time they open the file? In other words, can I set the parameter values from within the "Reports"-view using a visualization?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft v-ljerr-msft
Microsoft

Re: How do I add parameters to the report "Slicer" visualization?

Hi @carlosDash,

 

As far as I know, the value of the Query Parameters can only be modified:

  • By Edit Parameters.
  • Within Query Editor.
  • When using Templates.

It is not possible to reference the Query Parameter to a visualization on the report, then modify its value with that visualization.Smiley Happy

 

Regards

View solution in original post

5 REPLIES 5
Microsoft v-ljerr-msft
Microsoft

Re: How do I add parameters to the report "Slicer" visualization?

Hi @carlosDash,

 

As far as I know, the value of the Query Parameters can only be modified:

  • By Edit Parameters.
  • Within Query Editor.
  • When using Templates.

It is not possible to reference the Query Parameter to a visualization on the report, then modify its value with that visualization.Smiley Happy

 

Regards

View solution in original post

carlosDash Advocate IV
Advocate IV

Re: How do I add parameters to the report "Slicer" visualization?

Thanks for the reply @v-ljerr-msft Smiley Happy. It's unfortunate that parameters can't applied to visualizations. 

 

I already discussed this in another topic of mine but would you also agree that it's not possible to use Power BI parameters within SQL queries? I was hoping to build a dynamic SQL query using parameters & templates (opening Power BI file asks for start and end dates and passes them along to the SQL statement) but I'm not sure if it's possible.

Microsoft v-ljerr-msft
Microsoft

Re: How do I add parameters to the report "Slicer" visualization?

Hi @carlosDash,

 

You should be able to use Power BI query parameters within SQL queries. For more details about how to do it, you can refer to this article(in scenario 1, use case 2).Smiley Happy

 

Regards

Highlighted
rohitpaliwal
New Member

Re: How do I add parameters to the report "Slicer" visualization?

Frnds,

 

I've got four drop downs in my report

 

1. Country

2. State

3. City

4 Store

 

the navigation is working fine, but I've a requirement to take this to next level i.e. in each drop down I've option to select either one or all, now once the selection is made, I want to use this as a input parameter for a stored procedure which resides in my sql server database.

 

Is this possible

If yes then how

 

 

ikkew Advocate I
Advocate I

Re: How do I add parameters to the report "Slicer" visualization?

Now that more than a year has passed, is this still not possible or has this been updated?

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors