cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ethan0079 Advocate III
Advocate III

Re: (=) suddenly Invalid argument

For me the .Value don't change the problem


@Aswet wrote:

Thanks, the .Value worked!

Strange that things like this just happens. Someone must have change the syntax qualifier.


 

Data_Enthusiast Resolver I
Resolver I

Re: (=) suddenly Invalid argument

Hi. I am very new to PowerApps.

 

I am unable to create an if statement using the '=' operator. I am using a SharePoint list as my source.

 

The formula reads: if(SharePointList.Year = 2019, "Yes", "No")

 

This seems like a simple formula, but for some reason it is not working. Please help.

Super User
Super User

Re: (=) suddenly Invalid argument

@Data_Enthusiast 

I would recommend starting a new thread on this forum as this is an old posting that has already been solved (it will get more attention as a new post)

 

However, consider that your If formula is trying to compare the Year of the entire list to 2019...that's not going to work.

You will need to compare a specific record field.  So something like this would work:

   If(Lookup(SharePointList, ID=someId).Year = 2019, "Yes", "No")

Again, you need a specific record/field to work with.

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,503)