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 :
Small and medium business | Business Central, N...
Suggested Answer

Apply filters to multiple tables together in a query

(0) ShareShare
ReportReport
Posted on by 166
Hi everyone, 

I have a query made with the following tables; Price List Header, Price List LineCustomer and Item. I want to filter customer and item on the basis of unit price. Currently, the query outputs same combination of Item and Customer with different unit price. However, I want to show unique combination of Item and Customer. For the records having different unit prices for same Item-Customer combination, I want to filter such record based on lowest unit price. 

For example:
Right now, it outputs:  
CustomerItemUnit Price
Customer1Item14
Customer1Item15
Customer2Item16
 
The result I want:
CustomerItemUnit Price
Customer1Item14
Customer2Item16


I'd appreciate any help or suggestion. Thank you in advance. 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,432 Super User 2025 Season 2 on at
    Hi, you can try Min method: Retrieves the lowest value of fields in the column within a group.
    For example,
     
    Hope this helps.
    Thanks.
    ZHU
  • Ariba Mehdi Profile Picture
    166 on at
    Hi YUN ZHU,

    Thank you for the response. 

    The unit price field exists in Price List Line Table, not Item table.  The hierarchy of the dataitems follow:
    Price List Header
        Price List Line
           Customer
              Item

    Thus, this does not work to filter the unique Item-Customer Combination. 

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,064

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,568 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans