Hello,
I have an Edit form connected to an SQL Data Source. I have three fields that are in number format in SQL:
WorkOrderNumber
QtyCompleted
TotalQty
In the QtyCompleted card, I want the value to be the sum of the TotalQty column for the particular work order number. Here is my formula:
On the Default of the Card
Sum(Filter('[dbo].[Mechanical]', WorkOrderNumber = DataCardValue3.Text),TotalQty)
I get an error stating that it is an incompatible type and that the values being compared aren't the same. The left value is a number and the right value is a text type.
Anyone have an idea of how I can fix this?
Thanks
Solved! Go to Solution.
Hi @Danny_L ,
Maybe something like
Sum(
Filter(
'[dbo].[Mechanical]',
WorkOrderNumber = Value(DataCardValue3.Text)
),
TotalQty
)
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 @Danny_L ,
Maybe something like
Sum(
Filter(
'[dbo].[Mechanical]',
WorkOrderNumber = Value(DataCardValue3.Text)
),
TotalQty
)
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.
User | Count |
---|---|
255 | |
107 | |
90 | |
51 | |
44 |