Hi there,
I am having trouble getting my sum calculations to appear in a label and im starting to get annoyed 🙂
I have established connection to a SQL-database which contains data from NAV and the connection works just fine.
One of the screens of my app contains three labels: "Total quantity", "quantity invoiced" and "quantity to ship" as shown below. Dont mind the datatable in the screen.

These labels should contain the total sum of a column found i my SQL-database. For the "Total Quantity" there is no problem at all when i use the below code. Except that it will not show "psc".
Sum(
Filter(
'[dbo].[CRONUS TRIMIT W1 Ltd_$Sales Line]';
'Document No_' = LblAppName6.Text
);
Quantity
) & " psc"
However, when i use the exact same code for "quantity to ship" and "quantity to invoice" i can see powerapps reacting shortly but the sum does not appear. There is no error-message and the database columns are not empty.
Sum(
Filter('[dbo].[CRONUS TRIMIT W1 Ltd_$Sales Line]';
'Document No_'=LblAppName6.Text
);
'Quantity Invoiced'
)Seems to me that when the expression in Sum() contains more than one word, something goes wrong?
thx