cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cec123
Regular Visitor

Export to Excel with filter

I have created a flow and uploaded it to my canvas app. I am trying to set my syntax to only export the rows I select with radio (see picture below), my syntax is currently; 

 

Set(varfilelink,ExporttoExcel2.Run(JSON(Filter(ColObservation1, isSelected = true), JSONFormat.IncludeBinaryData)).filelink); Launch(varfilelink);

 

I know I need a filter, but it keep throwing an 'Error'. Is there another function I can use?

Cec123_0-1641513503944.jpeg

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

HI @Cec123 :

You could try:

1\Set the Radio's Items property to

["True"]

2\Filter the data

Filter(TheGallery.AllItems,TheRadio.Selected.Value="True")

Best Regards,

Bof

 

View solution in original post

2 REPLIES 2
AngeloG
Regular Visitor

An Idea is mark item as "selected" when you select it on your gallery (UpdateIf), then you cant use Filter to get only "selected items"

v-bofeng-msft
Community Support
Community Support

HI @Cec123 :

You could try:

1\Set the Radio's Items property to

["True"]

2\Filter the data

Filter(TheGallery.AllItems,TheRadio.Selected.Value="True")

Best Regards,

Bof

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,240)