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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Button query passing to PowerAutomate to email a CSV, PDF, and embedded HTML of query list.

I have the following query for OnSelect for a button to pass my currently selected data to a PowerAutomate routine attaching the data to an email as PDF, CSV, and embedded HTML, but this query is not working. Any help appreciated.

 

ExportTasks.Run("Filter(
If(
//This is for ALL and ALL
ddType.Selected.Result = "All" & ddManuf.Selected.Result = "All", 'Computer Peripherals Inventory',

//This is for selected Manufacturer and ALL Asset Type
ddType.Selected.Result = "All" & ddManuf.Selected.Result <> "All",
Filter('Computer Peripherals Inventory', Manufacturer = ddManuf.Selected.Result),

//This is for selected Asset Type and ALL Manufacturer
ddType.Selected.Result <> "All" & ddManuf.Selected.Result = "All",
Filter('Computer Peripherals Inventory', 'Asset Type' = ddType.Selected.Result),

//This is for selected Manufacturer and selected Asset Type
ddType.Selected.Result <> "All" & ddManuf.Selected.Result <> "All",
Filter('Computer Peripherals Inventory', Manufacturer = ddManuf.Selected.Result & 'Asset Type' = ddType.Selected.Result)),

//This is for search bar
TextInput1.Text in 'Serial Number' Or TextInput1.Text in Model Or TextInput1.Text in Location)",User().Email);

 

1 REPLY 1
v-jingzhang
Community Support
Community Support

Sorry this is out of the scope of Power Query. You can post this topic to Building Power Apps - Power Platform Community to seek for more professional suggestions. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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