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 Platform Community / Forums / Power Apps / If function returning ...
Power Apps
Unanswered

If function returning error "Invalid argument type. Expecting a Number value."

(0) ShareShare
ReportReport
Posted on by

I have a dropdown field called: "DataCardValue47" and it contains numbers from: 01 to 24, and I want other fields to appear if the value is less than or equal to the value selected in the "DataCardValue47" field.

 

error.png

 

My code:

If(DataCardValue47.Selected.Value= Value(DataCardValue13.Text)<=23;true;false)

 

An example:

 

I have a field called: "ValorDaParcela23", and the value in the field "DataCardValue47" is equal to: 23 or less it shows, if not, no.

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    If(DataCardValue47.Selected.Value>= Value(DataCardValue13.Text);true;false)

    Or

    If(DataCardValue47.Selected.Value=<Value(DataCardValue13.Text);true;false)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Gorilla_8 ,

    As i can see you are passing two conditions invalidation part that is the reason you getting error.
    Below screenshot for ref.

    VijayTailor_0-1602618383495.png

    Note - if you want to use more condition then use the nested if.

    Thanks,
    Vijay



  • Gorilla_8 Profile Picture
    on at

    Yes, I tried both conditions, but I have a DROPDOWN with number values ​​between 01 to 24 and I want to place a condition as it selects one of the options, understand?

     

    Thnaks for the help @VijayTailor  and @eka24 

  • Gorilla_8 Profile Picture
    on at

    An example:

     

    If(DataCardValue47.Selected.Value<=23;true;false)


  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    As you mention the values are 01 through 24, this tells me your values are all text.

    So your formula should be:

    Value(DataCardValue47.Selected.Value)<= 23

    You don't need all the If...true, false stuff.  This formula will already return true or false.

     

    I hope this is helpful for you.

  • Gorilla_8 Profile Picture
    on at

    I knew this error, but I didn't know where to put it, my head stopped here.

     

    I thank everyone in this post for their help and understanding!

     

    Thank you very much! 

    @RandyHayes , @VijayTailor  and @eka24 !

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