cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Can you help me with an IF code inside the power apps

Hello everyone, everything good?

 

It is a stock control, whose function of this part is, to verify whether it is necessary to buy a product or not.

 

If Current quantity = Minimum quantity = "Yes"
Product required for purchase: Yes

If current quantity> Minimum quantity = "No"
Product required to purchase: No

 

My code:

Concatenate ("Product Required to Purchase:", "",

If ((ThisItem.'Current Amount ') = (ThisItem.'Minimum Amount'), "Yes", "No")

, "")

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@Joao3 

Code should look like this:

"Product Required to Purchase: "&If(ThisItem.'Current Amount'=ThisItem.'Minimum Amount', "Yes", "No")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Resolver I
Resolver I

Hey @Joao3 ,

 

I tried creating sample scenario like you. Please refer to below image:

 

image.png

 

 

Try matching your formula like above.

 

I hope this simplifies your query if any more question let me know.

 

Warmly

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

Thanks for taking my inputs. If you're digging into it, a Thumbs up is appreciated! Or if my suggestion solved your issue, please Accept it as a solution. This way everyone would be able to get the solution if they face a similar problem

Super User III
Super User III

@Joao3 

Code should look like this:

"Product Required to Purchase: "&If(ThisItem.'Current Amount'=ThisItem.'Minimum Amount', "Yes", "No")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Hi
I did it that way and it looks like it worked,  what do you think?

Concatenate("Product Required to Purchase: ", " ", if(ThisItem.'Current Quantity' = ThisItem.'Minumum Quantity', "Yes", "No")"")

It seems that you got what I need, but if you have a good practice I accept

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,470)