web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Export specific data f...
Power Apps
Unanswered

Export specific data from Powerapps to Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello y'all,

I'm trying to create a flow that, upon pressing a button, puts all items from a gallery into an excel file. The flow works so far but I've encountered a problem: 
I am filtering the data shown in the gallery, meaning that if their custom ID corresponds to the custom ID of an item, they show themselves. Using Shane Young's video about that matter, I've put together the following code:

Collect(colUsers,Filter(User_Table, Title = List.Selected.App_ID));     //Title -> ID of the user_Table's items
Set(varFilteredUsers,colUsers);
Set(varFormatJSON, JSON(varFilteredUsers, JSONFormat.IndentFour & JSONFormat.IncludeBinaryData));
ExportDataToExcel.Run(varFormatJSON);

However, while the file is saved at the designated location specified in the flow, the wrong data is shown in the excel table, meaning that it takes items from the datasource to which the "List" is connected, and not from the "User_Table" datasource. Any idea how I can solve this problem?

Thanks in advance
-CyrillosB

Categories:
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Would you please help with data in varFilteredUsers or colUsers is correct and as per your requirement. 

    Could you please try the below formula also if the values in above two collections are correct ? 

    ExportDataToExcel.Run(JSON(varFormatJSON,JSONFormat.IncludeBinaryData))

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard