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 / Model Driven App - Pop...
Power Apps
Unanswered

Model Driven App - Populating a Key-Value Multirow Table with a single form

(1) ShareShare
ReportReport
Posted on by 42

Hello PowerApps community.

 

TL:DR - how do you have a form that populates a key-value table with multiple rows per form, with the keys taken from the rows of another table

 

I'm new to Model Driven Apps, so I have a basic question about how to set forms to work with a common DB arrangement. This is actually an app for COVID but that's both miserable and not something to share publicly, so let's just pretend this question is more humorously about animals at a farm.

 

We have a form where we fill in the information about a farm - including name, address, and a count of each type of animal by gender. There are a lot of different types of animals, and the animals we ask about may change from week to week.

 

Given this, rather than setting up a column in a table for each type of animal + gender combination, and changing it constantly, we'd rather pull from a table listing the current animals we are asking about, and ask the user the same question for each animal, storing it in key value pairs.

 

Here's how we have our dataverse tables

 

Animal Table - this table might change from week to week, and the animals asked about in the form should change appropriately.

AnimalDesc
Cow
Chicken
Donkey
Monkey

 

Farm Answer Table

FarmIdFarmNameFarmAddress
1Old MacDonald's FarmE i e i Road
2Wholesome Dairy IncorporatedBovine Crescent

 

Animal Answer Table

 

FarmIdAnimalMalesFemales
1Cow23
1Chicken45
1Donkey07
1Snake12
2Cow35
2Chicken47
2Donkey89
2Monkey00

 

Form

Farm Details  
Farm Name  
Farm Address  
   
Animal CountMaleFemale
Cow  
Chicken  
Donkey  
Monkey  

 

How do we implement a system like this, where the form fills in one row per farm, but multiple rows for each animal, and generates a field to fill in for each animal in the form?

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard