Hi,
I am using latest Jet essentials and the table builder in this case with NAV 2009 r2 running on SQL svr 2008 R2.
I added a calculated field being =NP("Formula","[@[Sales Invoice Line - Line Amount]]-[[@[Sales Invoice Line - Quantity]]*[@[Sales Invoice Line - Unit Cost]]]") but the result is
'=[@[Sales Invoice Line - Line Amount]]-[[@[Sales Invoice Line - Quantity]]*[@[Sales Invoice Line - Unit Cost]]] and not the result of the intended calculation.
I also then want to create a Pivot table on this generated information on another sheet to create pivot charts, graphs etc but have tried and can't seem to set the range.
I am new to Jet so please bear with me.
I have attached the sample I am struggling with
Many thanks
Thomas
4 comments
-
Jet Reports Historic Posts Hi Thomas,
If you add a "=" in your formula it should work. It's just like a formula in Excel.
So, the formula becomes =NP("Formula","=[@[Sales Invoice Line - Line etc.
Does this work for you? -
Jet Reports Historic Posts Hi Hans,
I tried your suggestion and am getting the exact same result.
Do you have anything else for me to try?
I also tried a straight forward simple excel calc referencing cells but that did not work either.
Am using language English - US, list separator is a comma ","
Thanks -
Jet Reports Historic Posts Hi Thomas,
When I read the topic I noticed the missing "=" and responded. But now that I try the report too I found that there's another issue as well. It's all about brackets: the [ ] brackets were applied instead of ( ).
This formula works for me:
=NP("Formula";"[@[Sales Invoice Line - Line Amount]]-([@[Sales Invoice Line - Quantity]]*[@[Sales Invoice Line - Unit Cost]])")
Can you do the other formula yourself? -
Jet Reports Historic Posts Hi Hans,
That worked.
This is the corrected formula on the other one
=NP("Formula";"(([@[Sales Invoice Line - Line Amount]]-([@[Sales Invoice Line - Quantity]]*[@[Sales Invoice Line - Unit Cost]]))/[@[Sales Invoice Line - Line Amount]])*100")
which seems to be working.
Had no clue about using the round brackets as I was under the impression with the NP formula that square brackets was the way to go.
Thanks for solving that one