Having an issue with using Sumx and with a filter

I have a customer spend report that I have been developing. One of the needs of the report is to provide customer spend totals for our parts department. Parts can be purchased over the counter or can also be included on a service ticket. I have two ledgers in my PBIX file. General Ledger Entries PAR and Service Ledger Entries. The common key is the invoice number. The relationship between the two tables is many to many, so I created an intermediate table that I can use to look up invoice numbers from the General Ledger Entries PAR table find the matching invoice(s) in the Service Ledger Entries table and sum the amounts in that table. The issue I am having is when I use the SumX(Filter()) statement in Dax. I can’t bring up the General Ledger Entries PAR Table as a filter argument. I have created a relationship for all three tables. Not sure what I am overlooking, but I am guessing its simple. I have attached the PBIX and screenshots.

Below is the Dax statement.

Total Service Amount =
SUMX (
FILTER (
‘Invoice Numbers’,
‘Invoice Numbers’[Invoice Number] = ‘General Ledger Entries PAR’[Invoice Number]
),
‘Service Ledger Entries’[Amount]
)


Screenshot 2023-02-28 111936
Customer Spend Report 02172023 Dev.pbix (32.1 MB)

Bumping this post for more visibility from our experts and users.

Hi @lomorris
Due to inactivity, we’d like to conclude that your inquiry was out of the experts and users’ bounds.

We noticed that your inquiry was left unsolved for quite some time now.
Looks like your inquiry was out of the experts and users’ bounds.

If you were sure you provided all pertinent context to your concerns and read how to use the forum more effectively and still find your question unanswered, your membership also comes with relevant resources that may help you with your Power BI education, so we advise that you check these resources as well.

While our users and experts do as much as reasonable to help you with your inquiries, not all concerns can be attended to especially if there are some learnings to be done. Thank you!