Announcements
I have these three tables in Dataverse: Participants, Medicaments and CMAIs. The tables are connected like this: Participant has a Primary Name Column named participant_code which identifies each participant. Medicaments has a lookup column named participant that references the participant table. And what I'm trying to do is getting the different (distinct) values of the participant attribute in the table Medicaments.I'm creating a new form for CMAIs and I want to values to be listed in a dropdown menu.
Hi @BirdieG
Try this:
Distinct(Medicaments, participant)
This code would give you the different values of the participant attribute in the table Medicaments.
If you have any questions or feedback, please let me know. Have a great day! 😊-----------------------PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻
I don't know why it doesn't work. I've trying the whole day.
The error message “Expected a different collection record structure” typically occurs when Power Apps expects a certain structure of data, but the actual data provided doesn’t match that structure.
In this case you will need to define the schema of the input property appropriately in the component.
Steps you can follow:
1) Keep a note of all the keys that you want to pass in the component.
2) Add proper schema in the input property inside the component.
Note: You can use ShowColumns/DropColumns functions to get only required columns. Remove attachments columns before passing the values.
https://powerusers.microsoft.com/t5/Building-Power-Apps/Error-Expected-a-different-collection-record-structure-While/td-p/1003079
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 345 Super User 2026 Season 2
Mohsin Ali 225
M Bilal Khan 192