Announcements
Hi all,
I have a question to a selection that I want to do. I have a SharePoint list with country and other entry's. So, in my If selection I try to compare the selected Country and the Country in the SharePoint list. If both Country names are the same, the default option should change to 'CH'. I always got the problem that Table and Text can't be compared. How can I solve this?
Thanks a lot
Country is a Choice field?
Try this:
If(... And DataSource.'Country'.Value ...)
If "Value" does not work see what other options does the Choice field gives you and use the one that you neeed.
If you need additional help please tag me in your reply and please like my reply.If my reply provided you with a solution, pleased mark it as a solution ✔️!Best regards,Gonçalo NogueiraCheck my LinkedIn!My website!My blog!
Hi @Nogueira1306
Thanks for your reply. Unfortunately, I don't get any options behind the DataSource.'Country'.....
In my SharePoint list I have country as a choice. In the powerapps itself, I choose first the country and then the 'table' appears:
Do you have any other ideas? Or do you need some more information's from my side?
Thanks a lot, and best regards
You must have something after DataSource.'Country'DataSource.'Country'.Value does not work?
That is reallys strange
It looks like this:
And if I only do a dot, there is no option that I can select. Do you have any proposal for me to try
Try: Text(DataSource.'Country')
Then i got this message:
Man, not sure.. I need info about ALL your datasources, labels and comboboxes... Everything you use there
Okay than let's try and if we don't find a solution I will try on a different way:
So to select the country at the beginning i have a sharepoint list Test. From there I take the Country's to select :
Than i have a second Sharepoint list with also the country but also other data that i need later in the project
So in my If I try to compare the selected country from the dropdown that is from my sharepoint list 'Test' with the country form the other Sharepoint list 'NewProduct...' . I dont know if you can do anything with this informations?
Hmmmmm...And if you try to compare the 2 dropwdows?If(... Dropdow1.Selected.Value = Dropdown2.Selected.Value ..)
No that also does not work, because at the end I want to check in the Sharepoint list and get from there the Ref. Market and fill it in the dropdown as default value:
So at first, I select a Country, then it should go to the SharePoint list, go to the selected country, get the Ref. Market and set it into the dropdown. Maybe It works with a for or something like that.
I will try and if someone has a Idea, i would be happy for letting me know.
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 243 Super User 2026 Season 2
WarrenBelz 190 Most Valuable Professional
Mohsin Ali 135