Hello,
So i'm struggling for a while on a piece of code. Im fairly new to Power Apps. So i want to do an IF statement on a column customerID. Basically i want to check if the SelectedcustomerID exists in the customerID column. IF it doesn't my label should say "Not Signed".
This is what i have so far:
If(LookUp('[dbo].[signaturetest]',customerID=selectedCustomerID),"Signed","Not Signed")
So IF the selecterCustomerID exists in the customerID column my label should say Signed.
Thanks in advance,
Anthony
Solved! Go to Solution.
Hi @Anonymous ,
Something like this should do it
If(
CountRows(
Filter(
'[dbo].[signaturetest]',
customerID=selectedCustomerID
) >0,
"Signed",
"Not Signed"
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Anonymous ,
Something like this should do it
If(
CountRows(
Filter(
'[dbo].[signaturetest]',
customerID=selectedCustomerID
) >0,
"Signed",
"Not Signed"
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
You might try:
If(LookUp('[dbo].[signaturetest]',customerID=selectedCustomerID, true),"Signed","Not Signed")
Note the third argument in the LookUp - true. Normally the third argument is for the name of the column whose data you want to return. If the third argument is blank the whole record is returned. If you set the third argument to true, it should return true only if the condition is met.
User | Count |
---|---|
256 | |
108 | |
97 | |
51 | |
39 |