Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Displaying Only Populated Fields for Selected Resource and Handling Dynamic SharePoint Columns

(1) ShareShare
ReportReport
Posted on by 32
Hello,
quite new to canvas apps.
I am building a Power Apps app that connects to a SharePoint list with around 100 columns.
Users should select a 'Resource Name', and fields with values only should be displayed.
 
Additionally, a specific user should be able to  add columns/deals in the app (which in turn will be added in SP) and those columns should be visible and editable for the other users.
Some columns might have missing data (empty cells) for certain resources. 
 
quick example of the sp structure below:
 
Manager Resource Name Deal1 Deal2 Deal3 Deal4 Deal5
John Smith Alice Johnson 50   50%    
John Smith Bob Brown   75%   15%  
Mary Davis Charlie Green 50 50      
Mary Davis Dana White       100%  
John Smith Eve Black 25% 25%   25% 25%
 
 
- The goal is to show only the columns with values when a specific Resource Name is selected in Power Apps. Other columns (e.g., empty deal columns) should be available in a ComboBox for the user to select and display if needed.
 
My questions is - what would be the best approach having in mind functionality and user experience to meet the above mentioned needs
I’ve tried using a Gallery for the Resource Name and a separate Form for the Deals. However, I’m struggling with how to conditionally show only the DataCards with values and manage the dynamic addition of new columns in the Form. Additionally, I experimented with transposing the deals into rows to utilize the Gallery control, but this approach complicates the monthly export of the SharePoint list, which needs to retain its original column structure.
 
Any suggestions are much appreciated.
thank you
Martin
Categories:
  • WarrenBelz Profile Picture
    146,645 Most Valuable Professional on at
    Displaying Only Populated Fields for Selected Resource and Handling Dynamic SharePoint Columns
    Hi MMDDW 
    Unfortunately, you can do neither - dynamically refer to fields or add them from Power Apps. Fields need to be added in the SharePoint interface and you would need to hard-code any reference to fields, controls or data sources.
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard