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, ...
Suggested Answer

How to add table in lookup for query filter

(0) ShareShare
ReportReport
Posted on by

Hi,

How to add a table for this lookup.

filterlookup.PNG

I need to add custtrans table in this lookup. Anyone give some idea or example.

Thanks.

I have the same question (0)
  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    Either add it into the query (in AOT or code, depending how the query is created) or add it at the Join tab in the dialog. Note that the latter option doesn't allow you to choose the type of join, which might be a problem.

  • mhdshb1 Profile Picture
    1,250 on at

    Hi,

    In addition to what martin said, make sure you extend the query CustAgingReport and add the custtrans datasource

    Regards,

    M

  • Community Member Profile Picture
    on at

    Hi martin,

    Thanks for this. this join is a tree, How to find the correspondent query for this.

    Thanks

  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    What do you mean by "this join is a tree" and what is "this"?

    Isn't the query CustAgingReport, as mentioned by Mohammad?

  • Community Member Profile Picture
    on at

    Hi martin,

    I can join the table using by join tab in cust aging report. but how to add a table by correspondent metadata.

    I personalized the corresponding form they used datasource tree. How to add the table by using that tree.

    Thanks

  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    I'm sorry, but it's not clear to me which form you're talking about and how it's related to your question ("How to add table in lookup for query filter?"). Please realize that all we know about your problem is what you tell us and if you don't give us enough information, there is little we can do for you.

  • Community Member Profile Picture
    on at

    Hi martin,

    Sorry for the less information about my post.

    Now I'm working in Custagingreport.

    I need to add one more table in the ssrs filter.  they are used the "Custagingreport" query for that filter So I created an extension of the query(custagingreport) and added the custtrans table and created the relation.

    6646.trans.PNG

    Now I can select custtrans table and select the filed But I'm unable to open the report. When I open the report showing this error.

    4188.filter.PNG

    How to solve this. Give some idea.

    Thanks.

  • Community Member Profile Picture
    on at

    Hi Mohammed,

    Thanks for this.

    7127.filter.PNG.

    I tried in your way but showing error while generating reports

    How to solve this.

    Thanks.

    Thanks

  • Suggested answer
    Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    Unfortunately you didn't tell us what changes you made to the query, but it sounds like you used an inner join, which changes what the query returns. If a customer has 100 transactions, your query will return 100 records for the customer, which is not a correct input for the record.

    What you should do depends on what you want to achieve; I guess that using an exists join is what you need.

  • Community Member Profile Picture
    on at

    Hi Martin.

    sounds like correct Now What i do?

    How to solve this.

    Thanks.

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 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans