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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Working back from LogisticsElectronicAddress entry to matching Customer Account Number?

(0) ShareShare
ReportReport
Posted on by 436
I've been asked to do a Power BI report that lists outstanding customer invoice payments. I've done that, but the users are now asking me to annotate each invoice with a concatenated list of the email contacts we've sent each the invoice to.
 
I can see the business purposes (ElectronicAddressRoles containing /Inv/) and email type (Type = 2) records in the LogisticsElectronicAddress table.
 
Any ideas how do I map each record in the LogisicsElectronicAddress table back to the corresponding CustTable.AccountNum? I'm trying to do that in DAX - it looks like it's a step through:

CustTable.AccountNum in
CustTable.Party = DirPartyTable.RecID
DirPartyLocation.Party = DirPartyTable.RecID
DirPartyLocation.Location = LogisticsLocation.RecID
LogisticsElectronicAddress.Location = LogisticsLocation.RecID (where ElectronicAddressRole contains /Inv/ and Type = 2 (email))
 
If can get that far, I can do the rest of the contortionist gymnastics!
 
Any help or guidance greatly appreciated :-)
 
Ian W.
I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi Ian, Check if this SQL query helps you.
     
    select * from LOGISTICSELECTRONICADDRESS le
    join LOGISTICSLOCATION ll
    on ll.RECID = le.LOCATION
    join DIRPARTYLOCATION dpl
    on dpl.LOCATION = ll.RECID
    join  DIRPARTYTABLE dp
    on dp.RECID = dpl.PARTY
    join CUSTTABLE ct
    on ct.PARTY = dp.RECID
     
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at
    Hi Ian,
     
    You will be having Account num from CustTable right. Based on that you can build relation.
    You can link 'Party field from CustTable' to 'Party field from DirPartyLocation' table.
    You can refer to DirPartContactInfoView to get the contact details of the customer.
    Normally the table relation will be like below.
    CustTable.AccountNum == "US-001"
    CustTable.Party == DirPartyLocation.Party
    LogisticsElectronicAddress.Location == DirPartyLocation.Location
    LogisticsElectronicAddress.Type == 2
     
    Thanks,
    Girish S.
     
  • Ian Waring Profile Picture
    436 on at
    Thank you (for some reason it didn't send me your replies - but all working now). Thank you!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans