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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Branching Logic

(0) ShareShare
ReportReport
Posted on by 6

I'm trying to create a Power App form and some questions should appear based on another questions answer. I am trying to use the following formula in the visible setting for a specific question but I'm getting the error "incompatible types for comparison, these types can't be compared: Number, Text".

 

Formula being used: If(Value('Number of CDI Queries _DataCard1'.Selected.Value) = "1", true, false)

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @breed14,

     

    You could try one of the following in the Visible property (no If needed since it will return true or false):

     

    Value('Number of CDI Queries _DataCard1'.Selected.Value) = 1
    

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

     

  • SebS Profile Picture
    4,582 Moderator on at

    @breed14 

     

    Value() - Changing whatever is in Number of CDI Queries _DataCard1'.Selected.Value to a Number than "" what You wrap 1 changing 1 to text means Number not Match text simple remove "" and it should Match the Type

     

     

    Formula being used: If(Value('Number of CDI Queries _DataCard1'.Selected.Value) = 1, true, false)

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard