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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
motleyts2
Frequent Visitor

Make Slicer a Variable to add to Power Automate

Hello. I have a slicer that has Line of Business (LOB) values (i.e., Medicare, Medicaid, Commercial, etc). How can I make this slicer a dynamic variable to use in Power Automate? In Power Automate, the value in the slicer (let's say it's "Medicare") will be added to the File Name in the Create File to Sharepoint action.

 

In summary, I need assistance with making a slicer a dynamic value that updates the File Name in the Create File action. So, if the user chooses "Medicare" or another value in the slicer, this value will be updated in the File Name in Power Automate as "PowerBIData_[LOB]_DateTime". The end goal is to create a CSV file with a dynamic File Name that updates based on the slicer value.

 

Thank you.

1 ACCEPTED SOLUTION
christinepayton
Super User
Super User

Are you using the Power Automate visual, where you click the button to send it to PA? If that's what you're using, I would just put the field into the table visual so that when you click the button, whatever is selected in the slicer is sent along with the data to Power Automate by virtue of it also being in the table. If it's a single-select slicer, you can just get the first value with an expression on the Power Automate side. 

View solution in original post

4 REPLIES 4
christinepayton
Super User
Super User

Are you using the Power Automate visual, where you click the button to send it to PA? If that's what you're using, I would just put the field into the table visual so that when you click the button, whatever is selected in the slicer is sent along with the data to Power Automate by virtue of it also being in the table. If it's a single-select slicer, you can just get the first value with an expression on the Power Automate side. 

Thank you! I ended up creating a selected value of the slicer as a measure. Added the measure to the Power Automate flow values. Added a Compose action in the flow with the triggerbody expresssion. 

I have same requirment in my project, so can u povide me more details to build this flow in Power automate

If I had to guess, it was probably a measure like SELECTEDVALUE( field name here). If you drop that in the visual you're displaying and in the Power Automate visual button fields well, it will be sent to Power Automate when someone clicks the button. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors