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
rahul416
New Member

Run a parameter to extract one name in a string of names but extract that name everywhere it appears

Hi All- 

 

I have a large dataset in which I would like to use a slicer to extract a text value (name) for every instance that the selected name shows up on the dataset. One issue is there are multiple names that are separated by commas that show up within a cell of a column. I would like the slicer to extract all records whenever that name shows up. 

 

I have read applying parameters is the way to go but since it is a large dataset; there are performance issues and takes a long time to refresh. Any ideas on how to proceed?

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @rahul416 ,

 

You can create a parameter "Name" contains user names.

3.PNG

Then add a text filter on "name" column which contains the value of parameter.

2.PNG

4.PNG

Once you change the parameter, the result would be change.

5.PNG6.PNG7.PNG8.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

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

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @rahul416 ,

 

You can create a parameter "Name" contains user names.

3.PNG

Then add a text filter on "name" column which contains the value of parameter.

2.PNG

4.PNG

Once you change the parameter, the result would be change.

5.PNG6.PNG7.PNG8.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

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

@rahul416 you cannot pass slicer value to underline data source to pre-filter the data, the only way is to create a parameter in your query use the parameter to filter the data using a parameter. check this video

 

https://channel9.msdn.com/Blogs/MVP-Azure/Pass-parameter-to-SQL-Queries-statement-using-Power-BI

 

 



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.

Unfortunately, the data structure lies in PowerBI so we aren't able to use SQL. Any options to do this in PowerBI?

@rahul416 you can filter in power query using a parameter?



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.

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.