Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Count Distinct In Nav

Posted on by Microsoft Employee

Hi guys !

How can  i count distinct in Nav. Concrete example : Count  different values of Job No. in Table 169 Job Ledger Entries.

Thank you in advance!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Count Distinct In Nav

    Thank you so much for your response.
    Actually i need to count in total this different values .How can i apply this on the querry over the count variable?

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Count Distinct In Nav

    There are couple of ways, you can use the query as discussed in the below blog

    blogs.msdn.microsoft.com/.../application-design-pattern-select-distinct-with-queries

    or you need to loop the job ledger entry table and insert into the Job Table by making it Temporary variable and insert into the table only if it does not exist then take the count of it.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans