web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : QPq259FGAuuHYH2d0n+ODB
Power Apps - Building Power Apps
Answered

Expected Table Value. If Statement. If DataCardValue = "value" then "email@gmail.com" else ""

Like (0) ShareShare
ReportReport
Posted on 27 Jul 2023 18:07:56 by 911 Super User 2024 Season 1

Hi,

 

I have a dropdown lets call it datacardvalue14.

This has dropdown values, "a", "b", and "c"

 

Then in another box I have this -

 

If(DataCardValue14.Selected.Value = "a", "email@gmail.com" , '')

 

But getting error expected table value.

 

What going on here?

Categories:
  • Verified answer
    timl Profile Picture
    35,237 Super User 2025 Season 2 on 27 Jul 2023 at 18:53:52
    Re: Expected Table Value. If Statement. If DataCardValue = "value" then "email@gmail.com" else ""

    Hi @wonka1234 

    I assume that you're trying to set the Items property of another dropdown control. In that case, this formula should work for you.

    If(DataCardValue14.Selected.Value = "a", 
     Table({email:"email@gmail.com"}) 
    )

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