Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Duplicated Results in SmartList

Posted on by 112

Client is using basic SmartList - Employee Summary.  Every employee that had wages for all months in the year is duplicated, those that worked part of the year are showing one line. How can I get the duplicated lines not to show in the results?

Categories:
  • john.nguyen Profile Picture
    john.nguyen 25 on at
    RE: Duplicated Results in SmartList

    Dear,
    When I checked on the view which created for this Smartlist, I saw it might have the duplicated row if the employees have multiple records in the table UPR00901. You can fix by added the keyword 'DISTINCT' right after the 'Select' or in the JOIN CLAUSE of the first table, added 1more condition into the JOIN CLAUSE (I pasted my script there and remove the detail because it's so long, just keep the modify points there).
    SELECT DISTINCT RTRIM(dbo.UPR00100.EMPLCLAS) AS EMPLCLAS, ..... 
    FROM dbo.UPR00900 WITH (NOLOCK) LEFT OUTER JOIN
    dbo.UPR00901 WITH (NOLOCK) ON dbo.UPR00900.EMPLOYID = dbo.UPR00901.EMPLOYID AND dbo.UPR00900.YEAR1 = dbo.UPR00901.YEAR1 INNER JOIN
    dbo.UPR00100 WITH (NOLOCK) ON dbo.UPR00900.EMPLOYID = dbo.UPR00100.EMPLOYID INNER JOIN
    dbo.UPR00300 WITH (NOLOCK) ON dbo.UPR00900.EMPLOYID = dbo.UPR00300.EMPLOYID

    Hope this can help for you!

    Best Regards,
    John Nguyen

  • Suggested answer
    RE: Duplicated Results in SmartList

    My thoughts are that the Employee Summary report in SmartList, is just pulling from the Employee Summary view in the company database.

    If you run a SELECT script with this 'Employee Summary' view in SQL, against this same company database, do you also see the duplicated records, or no?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans