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 / Compare Table and Text
Power Apps
Unanswered

Compare Table and Text

(0) ShareShare
ReportReport
Posted on by 42

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? 

schaffl2_1-1667817337235.png

 

Thanks a lot

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    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 Nogueira

    Check my LinkedIn!

    My website!

    My blog!

     

  • schaffl2 Profile Picture
    42 on at

    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: 

    schaffl2_0-1667829124395.png

    schaffl2_0-1667830611659.png

     

    Do you have any other ideas? Or do you need some more information's from my side?

     

    Thanks a lot, and best regards

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    You must have something after DataSource.'Country'

    DataSource.'Country'.Value does not work?

     

    That is reallys strange

  • schaffl2 Profile Picture
    42 on at

    It looks like this:

    schaffl2_0-1667831484184.png

    And if  I only do a dot, there is no option that I can select.  Do you have any proposal for me to try

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Try: Text(DataSource.'Country')

  • schaffl2 Profile Picture
    42 on at

    Then i got this message: 

    schaffl2_0-1667832003872.png

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Man, not sure.. I need info about ALL your datasources, labels and comboboxes... Everything you use there

  • schaffl2 Profile Picture
    42 on at

    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 :

    schaffl2_0-1667832423691.png

    Than i have a second Sharepoint list with also the country but also other data that i need later in the project 

    schaffl2_1-1667832517319.png

    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?

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hmmmmm...

    And if you try to compare the 2 dropwdows?

    If(... Dropdow1.Selected.Value = Dropdown2.Selected.Value ..)

  • schaffl2 Profile Picture
    42 on at

    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:

    schaffl2_0-1667891309982.png

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard