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

Community site session details

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

F&O Grid Advanced Filter or Sort: Combine terms to do a logical AND search on item description?

(0) ShareShare
ReportReport
Posted on by 197

Hello,

I hope this is the correct forum under which to post this question, please direct me to another MS D365 F&O forum if this is not the correct place.

My question:

We have the dimension "Product name" that contains item descriptions.

How do I combine two text search terms?

For example:

I want to search on 'ice cream*' (Starts with ice cream)

AND

I want to limit that search to contain "rocky road"

How do I do that?

Currently I have tried using the Advanced filter or sort Page Option in the Released Product Variants page.  From there I can set an inquiry with distinct rows that offer:

Table | Derived table | Field | Criteria

When I enter 2 criteria rows for Field: Product Name and Criteria, the result is a logical OR search of anything containing criteria 1 OR criteria 2.

I must be using the interface incorrectly or the function I am seeking does not exist?  Though I'm thinking it's my usage not a deficiency in D365 F&O

I am using https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/get-started/advanced-filtering-query-options?context=%2Fdynamics365%2Fcontext%2Fcommerce and

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/filtering as a reference so far.

Thanks to any and all for any help you can provide to this basic question.

I have the same question (0)
  • jt1024 Profile Picture
    197 on at
    RE: F&O Grid Advanced Filter or Sort: Combine terms to do a logical AND search on item description?

    I found this:

    "(Finance and operations query) (finance and operations query between parentheses) ... Type a query as an SQL statement between parentheses using the finance and operations query language.

    ((AccountNum LIKE "US*") && (DirPartyTable.Name LIKE "Cont*"))

    as an example of syntax for a filter condition on a field from the root datasource as well as a field from a different datasource (for the All customers page)"

    But I can't find more on "Finance and Operations Query Language, and that requires knowing the data table field name and not the user interface display name for the field by the looks of it.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,721 Super User 2025 Season 2 on at
    RE: F&O Grid Advanced Filter or Sort: Combine terms to do a logical AND search on item description?

    Hi Jim,

    When you mention that the product name should start with "Ice cream", I do assume that "rocky road" is not the first part of the dimension value. In that case, you can do the filtering with one query value: "Ice cream*rocky road*". This will tell that the value should start with the first part and it should contain the second part which is surrounded by the wildcard character.

  • jt1024 Profile Picture
    197 on at
    RE: F&O Grid Advanced Filter or Sort: Combine terms to do a logical AND search on item description?

    Excellent!  That works, and taught me a new way to think of using wildcards! Much appreciated.

    - Jim

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
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans