Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Advanced CalFormula on FlowField

Posted on by 170

Hello there. It is possible to make some kind of advanced Calculation Formula on flowfield? I need to count on the Sales Order Line qty of invoiced Purchase Order Lines which are connected with this Sales Order by Special Order. If the purchase order line are really connected to sales order line, there is no problem to count it using CalcFormula*: 

Sum("Purch. Inv. Line".Quantity WHERE (Purchase Order No=FIELD(Special Order Purchase No.),Line No.=FIELD(Line No.)))

* Purchase Order No in "Purch. Inv. Line" tab is another FlowField where there is a purchase order number getted form purchase invoice header tab

Now, the problem is when the sales order line is not connected with special order. The calculation filter is:

Screenshot_5F00_2018_2D00_05_2D00_29-09.47.12_5F00_ABlydP.png

And the result is sum of all posted lines with line no 10000. 

Is it possible to make depended calcformula on another field? Some kind of this: IF 'Special Order Purchase No' <> '' THEN .... 

*This post is locked for comments

  • Verified answer
    MateuszKILINSKI Profile Picture
    MateuszKILINSKI 170 on at
    RE: Advanced CalFormula on FlowField

    Damn, silly me... Adding another filter Specjail Order Purchase no <> '' resolved this issue...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans