Skip to main content
Community site session details

Community site session details

Session Id : puSzTth0xzJsODUWSqQkdK
Power Apps - Building Power Apps
Unanswered

Dropdown result and concat 2 colunms based datacardvalue

Like (1) ShareShare
ReportReport
Posted on 12 Jul 2024 12:27:27 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 Moderator on 12 Jul 2024 at 12:36:20
    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
    13,290 Super User 2025 Season 2 on 12 Jul 2024 at 12:31:19
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete