Hi !
I hope someone could help me I'm new to PowerApps
I have a gallery with 5 items. Work_No, S/N, Description, QTY are from an excel table named "Materials" and the item TruckQuantity is stored in an other excel table named "TruckStock". In this table, we also find the SN and the description of the materials
The materials present in the "Materials" table are not all present in the TruckStock table. So when a material is present in both tables, I want the quantity present in the truck to be displayed.
Here is the formula in the Items property of my gallery:
Filter(Materials;!IsBlank(PN))
I tried to integrate an If function in the Text property:
If(ThisItem.SN = TruckStock.'S/N' , TruckStock.QUANTITY , "Not available in truck")
But I get this error message:
Incompatible types for comparison. It is possible to compare these types: Error, Table
I also tried the AddColumns function but when I enter the function my gallery disappears :
AddColumns(Materials , "TruckQty" , LookUp(TruckStock , 'S/N'=SN).Quantity)

Thank you for your help