AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Duplicate records f...
 
Notifications
Clear all

Questions Duplicate records from EPEmployeeRate table

 
Acumatica Report Designer
Last Post by Tim Rodman 6 years ago
4 Posts
3 Users
0 Reactions
3,787 Views
RSS
DWS253
Posts: 33
 DWS253
Topic starter
March 12, 2018 8:00 pm
(@dws253)
Member
Joined: 9 years ago

I have a report I am working on that is generating duplicate records.  I finally traced it down to the join to the EPEmployeeRate table.  The table has two records for each employee with different effective dates for the rates.  

Does anyone know how to get the record with the most recent effective date linked? Or the older records filtered out?  I can't figure out how to get what is the equivalent of a SQL subquery to work in the Report Designer.


3 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
March 16, 2018 11:50 pm
(@timrodman)
Famed Member
Joined: 11 years ago

At first I was thinking that you could do something like this:

 

But then realized that of course that won't work.

You could do something like having a separate join for each Month or Quarter, but that's pretty messy with a lot of joins and it assumes that employees don't have more than one effective date in a Month or Quarter.

So, I'm stumped. I'm not sure you can accomplish this without doing a SQL View using a subquery, then connecting it to a DAC. The crux of the problem is that you need to read from more than one row at a time and a SQL View DAC is the only way I can think to do it.


Reply
NickSM
 NickSM
(@nicksm)
Joined: 6 years ago

Trusted Member
Posts: 46
June 26, 2020 12:24 am
Reply toTim RodmanTim Rodman

@timrodman

I just wanted to say that this Active Relation join saved my mind today. I knew you could multiple the same tables with an Attribute ID, but I could get the last part of the join i.e CSAnswers.AttributeID='xxxx'

image

LYW


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
June 26, 2020 12:46 am
(@timrodman)
Famed Member
Joined: 11 years ago

Hey, so even though we weren't able to figure out the original problem, at least this Discussion Topic was able to help with your scenario. That makes me happy 🙂


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 41 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Limited or no support from Acumatica?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Rafie Schwartz
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×