cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bplantes
Level: Power Up

App to Dynamically Create a Data Entry Form from a list of values

I am new to Power Apps.  I'm hoping to get the community's help with how to approach an app.  I have a data set that contains a setof KPIs for each Department and Goal Category.  There are other attributes tied to the KPIs like thresholds that can be used for measuring in reporting later.

 

OwnerGoal CategoryMeasureTypeGoalFreqThreshold 1 - LowerThreshold 1 - UpperThreshold 2 - LowerThreshold 2 - UpperThreshold 3 - LowerThreshold 3 - Upper
Department ACategory AKPI 2integer95weekly01005015075125
Department ACategory AKPI 3textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department ACategory AKPI 4percentage95%weekly010101
Department ACategory AKPI 5integer95monthly01005015075125
Department ACategory AKPI 6textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department ACategory BKPI 7percentage95%monthly010101
Department ACategory CKPI 8integer95weekly01005015075125
Department ACategory CKPI 9textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department ACategory DKPI 10percentage95%weekly010101
Department ACategory DKPI 11integer95weekly01005015075125
Department ACategory DKPI 12textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department BCategory AKPI 13percentage95%monthly010101
Department BCategory AKPI 14integer95monthly01005015075125
Department BCategory AKPI 15textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department BCategory BKPI 16percentage95%weekly010101
Department BCategory BKPI 17integer95weekly01005015075125
Department BCategory BKPI 18textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department BCategory CKPI 19percentage95%weekly010101
Department BCategory EKPI 20integer95weekly01005015075125
Department BCategory EKPI 21textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department BCategory EKPI 22percentage95%monthly010101
Department CCategory AKPI 23integer95monthly01005015075125
Department CCategory AKPI 24textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department CCategory AKPI 25percentage95%weekly010101
Department CCategory BKPI 26integer95weekly01005015075125
Department CCategory BKPI 27textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department CCategory BKPI 28percentage95%weekly010101
Department CCategory CKPI 29integer95monthly01005015075125
Department CCategory CKPI 30textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department CCategory CKPI 31percentage95%monthly010101
Department CCategory CKPI 32integer95weekly01005015075125
Department CCategory CKPI 33textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department DCategory AKPI 34percentage95%weekly010101
Department DCategory AKPI 35integer95weekly01005015075125
Department DCategory BKPI 36textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department DCategory CKPI 37percentage95%monthly010101
Department ECategory AKPI 38integer95monthly01005015075125
Department ECategory BKPI 39textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department ECategory CKPI 40percentage95%weekly010101
Department ECategory CKPI 41integer95weekly01005015075125
Department FCategory AKPI 42textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department FCategory BKPI 43percentage95%weekly010101
Department FCategory CKPI 44integer95weekly01005015075125
Department GCategory AKPI 45textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department GCategory AKPI 46percentage95%monthly010101
Department GCategory AKPI 47integer95monthly01005015075125
Department GCategory CKPI 48textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department HCategory AKPI 49percentage95%weekly010101
Department HCategory BKPI 50integer95weekly01005015075125
Department HCategory CKPI 51textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department ICategory AKPI 52percentage95%weekly010101
Department ICategory BKPI 53integer95monthly01005015075125
Department ICategory DKPI 54textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department ICategory EKPI 55percentage95%monthly010101
Department JCategory AKPI 56integer95weekly01005015075125
Department JCategory CKPI 57textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department JCategory DKPI 58percentage95%weekly010101
Department JCategory EKPI 59integer95weekly01005015075125
Department JCategory FKPI 60textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department JCategory GKPI 61percentage95%monthly010101
Department KCategory FKPI 62integer95monthly01005015075125
Department KCategory FKPI 63textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department KCategory FKPI 64percentage95%weekly010101
Department KCategory GKPI 65integer95weekly01005015075125
Department KCategory AKPI 66textHIGHweeklyLOWHIGHLOWHIGHLOWHIGH
Department KCategory GKPI 67percentage95%weekly010101
Department KCategory AKPI 68integer95weekly01005015075125
Department KCategory AKPI 69textHIGHmonthlyLOWHIGHLOWHIGHLOWHIGH
Department KCategory AKPI 70percentage95%monthly010101

 

As a user, I'd like to develop an app that has a form that allows me to fill out a "Reporting Date" and select the distinct "Department" values from a dropdown list.  This action would generate a grid with the all the KPIs for that Department.  I could then fill out the KPI values and click a "Submit" button which would put those values into another table:

 

Reporting Week EndOwnerGoal CategoryMeasureGoalTypeValueLinkRoadblocksNext ActionAssigned To
1/11/2019Department ACustomer SatisfactionKPI 295integer100 None  
1/11/2019Department ACustomer SatisfactionKPI 3HIGHtextHIGH None  
1/11/2019Department ACustomer SatisfactionKPI 495%percentage75% A has poor performanceMove A to BA's Boss
1/11/2019Department ACustomer SatisfactionKPI 595integer40 None  
1/11/2019Department ACustomer SatisfactionKPI 6HIGHtextMEDIUM None  

 

Is this at all possible with Power Apps?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

Re: App to Dynamically Create a Data Entry Form from a list of values

This is very much possible. 

 

Think of your data in two tables

  • list of KPIs
  • raw data for reporting against KPIs

 

I shared an app very similar to this kind of structure, but it's about quizzes/forms.

  • Table 1: list of all quizzes
  • Table 2: list of questions related to each quiz
  • Table 3: list of responses to each question in each quiz

https://powerusers.microsoft.com/t5/Community-Apps-Gallery/Design-Patterns-from-Mr-Dang-Part-2/m-p/1...

 

In a traditional solution, the questions of a quiz would be columns of a table, and answers to the questions would be values in each column (question). But that's not scalable since you would have to create new columns with each new question.

 

In a relational solution, multiple responses are saved to a separate table with a column that contains the id to the related question. With this structure in place, I would use a gallery to show all the questions for a selected quiz. In the gallery, I show and hide different controls depending on the type of question it is.

 

In your case, if you were to apply this solution, you would use a gallery for each of the KPIs for a given seleced department. The gallery would show and hide different controls for each type: percent, integer, text, etc. A form would not be used here since forms are meant for filling in data to specific columns of specific types. Since each question will change here, a gallery is more appropriate.

 

You can view the app with the instructions at the bottom of the post. Let me know if you have further questions.

1 REPLY 1
Highlighted
PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

Re: App to Dynamically Create a Data Entry Form from a list of values

This is very much possible. 

 

Think of your data in two tables

  • list of KPIs
  • raw data for reporting against KPIs

 

I shared an app very similar to this kind of structure, but it's about quizzes/forms.

  • Table 1: list of all quizzes
  • Table 2: list of questions related to each quiz
  • Table 3: list of responses to each question in each quiz

https://powerusers.microsoft.com/t5/Community-Apps-Gallery/Design-Patterns-from-Mr-Dang-Part-2/m-p/1...

 

In a traditional solution, the questions of a quiz would be columns of a table, and answers to the questions would be values in each column (question). But that's not scalable since you would have to create new columns with each new question.

 

In a relational solution, multiple responses are saved to a separate table with a column that contains the id to the related question. With this structure in place, I would use a gallery to show all the questions for a selected quiz. In the gallery, I show and hide different controls depending on the type of question it is.

 

In your case, if you were to apply this solution, you would use a gallery for each of the KPIs for a given seleced department. The gallery would show and hide different controls for each type: percent, integer, text, etc. A form would not be used here since forms are meant for filling in data to specific columns of specific types. Since each question will change here, a gallery is more appropriate.

 

You can view the app with the instructions at the bottom of the post. Let me know if you have further questions.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 125 members 4,036 guests
Please welcome our newest community members: