web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Dynamics Report Writer - Calculated Conditional Field with Three "OR" clauses

(0) ShareShare
ReportReport
Posted on by 987

I am working on a SOP Blank Invoice modification, adding a conditional calculated field. In the conditional field I have the following logic. If true it displays one set of text, if not another.

(SOP_Document_HDR_TEMP.DOC Number >= "SWI-0000000000" and SOP_Document_HDR_TEMP.DOC Number <= "SWI-9999999999" and RM_Customer_MSTR.Country Code = "CA") OR
(SOP_Document_HDR_TEMP.DOC Number >= "WEB-0000000000" and SOP_Document_HDR_TEMP.DOC Number <= "WEB-9999999999" and RM_Customer_MSTR.Country Code = "CA") OR
(SOP_Document_HDR_TEMP.DOC Number >= "INT-0000000000" and SOP_Document_HDR_TEMP.DOC Number <= "INT-9999999999" and RM_Customer_MSTR.Country Code = "CA")

The conditional works when evaluating the first or second clause, but the third clause with the "INT-" invoice does not. The supporting data and syntax is valid. My question is does Report Writer support the three "OR" options? Please advise. Looking for some feedback and advice. Thank you.

Categories:
I have the same question (0)
  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    It should be able to handle multiple OR clauses.

    But you could use multiple calculated fields to simplify the final 4th calculated field.

    You could also use GP Power Tools to create custom Report Writer functions with any logic you desire in them.

    Regards

    David 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans