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 : tNv1bszdfd7ctDvhpCCmDr
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 13 Oct 2020 19:31:42 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.

I have the same question (0)
  • Gorilla_8 Profile Picture
    on 13 Oct 2020 at 20:12:24
    Re: If function returning error "Invalid argument type. Expecting a Number value."

    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 !

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 13 Oct 2020 at 20:09:57
    Re: If function returning error "Invalid argument type. Expecting a Number value."

    @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 13 Oct 2020 at 20:09:21
    Re: If function returning error "Invalid argument type. Expecting a Number value."

    An example:

     

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


  • Gorilla_8 Profile Picture
    on 13 Oct 2020 at 19:50:18
    Re: If function returning error "Invalid argument type. Expecting a Number value."

    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 

  • Vijay Tailor Profile Picture
    2,961 on 13 Oct 2020 at 19:47:09
    Re: If function returning error "Invalid argument type. Expecting a Number value."

    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



  • eka24 Profile Picture
    20,921 on 13 Oct 2020 at 19:45:23
    Re: If function returning error "Invalid argument type. Expecting a Number value."

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 688 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 499 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading started
Loading complete