Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
elria
Helper II
Helper II

Passing Slicer Selection to Query

Dea all,

 

Is there any way to pass the slicer selection in the Query(data selected via SQL connection) or connect the slicer to a parameter?

 

Thank you in advance,

Elria

7 REPLIES 7
v-lili6-msft
Community Support
Community Support

hi @elria 

It couldn't achieve that "Passing Slicer Selection to Query" in power bi for now.

And you could try power bi parameter, but it is changed in dataset setting.

See more details as below:

https://docs.microsoft.com/en-us/power-query/power-query-query-parameters

https://www.red-gate.com/simple-talk/sql/bi/power-bi-introduction-working-with-parameters-in-power-b...

https://www.designmind.com/business-intelligence/power-bi-parameters-how-to-use-parameters/

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi  ,

Thank you for your reply. Have you figured out any work aorund for this? I want to give the end user the possibility to change the visuals (calculation output) via slicers, also in Service. I can't ask management eg to edit parameters from desktop.

Could power apps help on this? 

hi @elria 

It could not achieve via slicer, slicer is just a visual that used to filter data in report level, and the data from datamodel.

You could use it filter datasource, it likes you filter datasouce, then datasouce filter the datamodel, datamodel changed the slicer will changed too, now slicer also filter datasouce ...... And it goes on forever.

 

As a workaround, you could import all the data and then combine them into one big datamodel.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@elria , I doubt you can pass slicer parameter to query

jthomson
Solution Sage
Solution Sage

I don't think you can feed something back into the query itself like that, but there may be ways to get a similar result to what you're wanting using DAX, it'd depend on what you're actually wanting to do

@elria Unfortunately it is not possible, I think there is an idea on ideas forum, do vote for it so that this feature becomes available.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi  ,

Thank you for your reply. Have you figured out any work around for this? How end user can play around with the report then? I need a GUI especially in Service for the report audience.

 

Thanks,

Elria

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.