Hi! I'm new in PowerApp and have a question that I hope you experts can help with. I have three tables where I make a ClearCollect on one of the tables while I collect/lookup data from the other two tables depending on the value in first table.
Collect stmt:
ClearCollect(MedlemIKlubber; AddColumns('[beolafs_Development].[t02MedlemKlubb]';
"MedlemsNavn";LookUp('[beolafs_Development].[t01Medlem]';t01MedlemId = t01MedlemId).Navn;
"KlubbNavn";LookUp('[beolafs_Development].[t03Klubb]';t03KlubbId = t03KlubbId).KlubbNavn)).
The ide here is to make a collection based on t02MedlemKlubb and add two new fields to the collections.
The content of the two new fields should be looked up from to different tables.
The t02MedlemKlubb table has the following fields and values:
ID t01MedlemId t03KlubbId
1 1 5
2 1 2
3 2 5
The t01Medlem table has the following fields and values
t01MedlemId Navn
1 Bjorn-Even
2 Hans Klausen
The t03Klubb table has the following fields and values
t03KlubbId KlubbNavn
2 VBTK
5 ATK
The collection result is like this:
KlubbNavn MedlemsNavn t01MedlemId t02MedlemKlubbId t03KlubbId
VBTK Bjørn-EVen 1 1 5
VBTK Bjørn-EVen 1 1 2
VBTK Bjørn-EVen 1 2 5
The collection result I wanted to have:
KlubbNavn MedlemsNavn t01MedlemId t02MedlemKlubbId t03KlubbId
ATK Bjørn-EVen 1 1 5
VBTK Bjørn-EVen 1 1 2
ATK Hans Klausen 1 2 5
Can you see what is wrong her? Thanks!!