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 / Dropdown result and co...
Power Apps
Unanswered

Dropdown result and concat 2 colunms based datacardvalue

(1) ShareShare
ReportReport
Posted on by

I have a datacardvalue in a Power Apps modern form, and I need to create a conditional statement for its Items property. The condition should be based on the selected value from a DataCardValue, and at the same time, it should concatenate results from two columns in the database.

try: 

If(DataCardValue9.Selected.Value = "VALE"; ForAll(Choices([@CentroCustosRNV].CodigoSintetico); Value & " - " & Título);
  ForAll(Choices([@CentroCustosIAV].CodigoSintetico); Value & " - " Título))
Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @xFelipeDuartee 

     

    can u try this:

    If(
     DataCardValue9.Selected.Value = "VALE",
     ForAll(
     Choices([@CentroCustosRNV].CodigoSintetico),
     Value & " - " & Title
     ),
     ForAll(
     Choices([@CentroCustosIAV].CodigoSintetico),
     Value & " - " & Title
     )
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    The code you've provided looks pretty good, but I'm guessing it's not working as expected, or throwing an error? 

    Could you potentially provide a few more details so we can narrow down the issue some more?

     

    The only thing I can see from the code above, is that this most likely doesn't match the items property of your dropdown. This will definitely cause some issues, so you'll have to confirm that the items property will contain the values you try to pass in as default.

     

    Let 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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard