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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Count Distinct In Nav

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at

    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.

  • Community Member Profile Picture
    on at

    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?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans