AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • 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 John Doe Updated 5 years ago
4 Posts
3 Users
0 Reactions
3,587 Views
RSS
DWS253
Posts: 33
 DWS253
Topic starter
March 12, 2018 7:00 pm
(@dws253)
Member
Joined: 8 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
John Doe Updated
Posts: 3193
 John Doe Updated
Admin
March 16, 2018 10:50 pm
(@timrodman)
Famed Member
Joined: 10 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: 5 years ago

Trusted Member
Posts: 46
June 25, 2020 11:24 pm
Reply toJohn Doe UpdatedJohn Doe Updated

@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
John Doe Updated
Posts: 3193
 John Doe Updated
Admin
June 25, 2020 11:46 pm
(@timrodman)
Famed Member
Joined: 10 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,526 Topics
  • 10.9 K Posts
  • 14 Online
  • 2,410 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
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

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright ยฉ 2025 ยท AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

โ€นโ€บร—

    โ€นโ€บร—