Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Create table of blank fields

(0) ShareShare
ReportReport
Posted on by 97

I have a user requirement to allow records to be saved with fields not filled out because sometimes some information isn't available during the record creation process. They've come back and now want a report of all of the records that are missing fields and which fields are missing.

 

I'm currently pulling all of my sharepoint tables into individual collections, but I'm running into a wall for how to create a collection that shows what is missing. Starting with just one of the tables, I created a collection where that was the ID field and a list testing each field. However, what I end up with is a list with a bunch of blank items. I'm sure there is a better way to do this but I'm not seeing how to achieve it.

 

ForAll(ShowColumns(colDetailsAll,"Title") As StuffStart,Collect(colMissingFields,{IDNumber:StuffStart.Title, Missing:[
If(IsBlank(LookUp(colDetailsAll,IDNumber=StuffStart.Title).Field1),"Field1"),
If(IsBlank(LookUp(colDetailsAll,IDNumber=StuffStart.Title).Field2),"Field2"),
If(IsBlank(LookUp(colDetailsAll,IDNumber=StuffStart.Title).Field3),"Field3")]}));

 

dsagfhjj_0-1668611373796.png

 

I could see making a collection that was just:

{ID number: X, "field 3"

ID number: X, "field 6"}

that I could just combine with the group function, but I'm unclear on how I would iterate a record that has a dozen fields into a table with just two fields {title, missing field}. Can someone point me in the right direction for this?

 

Categories:
  • Scott_Parker Profile Picture
    1,090 on at
    Re: Create table of blank fields

    Power Apps just isn't setup to iterate across fields in this fashion. There really isn't a better way to do it in Power Apps, it's more of a question of using the right tool for the job.

     

    That said, you could improve performance by using a With() statement instead of running LookUp() repeatedly. You could filter the table before adding to Missing: to remove the blanks.

     

    Since it is more a data reporting request, depending on the customer requirements, consider using Power Query (either from Excel or Power BI) to mash up the data and view it somewhere else.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard