Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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))
  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: Dropdown result and concat 2 colunms based datacardvalue

    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! 🙂

  • mmbr1606 Profile Picture
    12,104 Super User 2025 Season 1 on at
    Re: Dropdown result and concat 2 colunms based datacardvalue

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard