Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

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!

  • 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,640 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans