Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MoMrCrane
Frequent Visitor

Matrix complex slicers

I have a problem that, to me, seems pretty complex. I have a Matrix displaying Aged AR info for our customers (how much they owe us 30-60-90 days out. This matrix displays the Customer, Location of the job, Invoice Date, Invoice#, Salesperson, then in the values the amount due for each invoice. 

MoMrCrane_1-1736363665199.png

 

I have slicers that will change the matrix based on the company and Salesperson on the invoice. We also have unapplied cash (UC), payments (PY), and credit memos (CM) that do not have a salesperson attached to them. 

 

MoMrCrane_2-1736363838472.png

 

How do I set it up so that if I use the salesperson slicer and select a person, it will show all invoices for that user, and all of the payments/unappliedCash/credit memos for those same customers? I don't want it to show all payments/unappliedcash/credit memos for all customers along with the invoices for that salesperson.

 

In other words, if I select Chris Jones, I would like to see this customer below (Acco Engineering Systems) including the unapplied cash invoice UC00000018 on 1/1/22 that doesn't have a salesperson attributed to it, as well as all the other customers Chris Jones has open invoices for.

MoMrCrane_3-1736365429425.png

 

Right now, if i select Chris Jones, I only get the invoices for which his name is attributed. I want to see his name, as well as the payments/unappliedcash/credit memos for the below customers. 

MoMrCrane_4-1736365791247.png

 

2 REPLIES 2
v-xingshen-msft
Community Support
Community Support

Hi @MoMrCrane ,
Based on the description of your post, you want the slicer to filter by salesperson and then show all customers associated with that salesperson as well as show all invoices and transaction records for those customers (even if those records are not directly associated with the salesperson), right?
Since we don't have specific data, we tried to help you with our own example data, you can check the pbix file we uploaded to see how we did it!

ShowAllCustomerTransactions = 
VAR SelectedCustomers = 
    CALCULATETABLE(
        VALUES(Customer[Customer]),
        FILTER(
            Invoices,
            Invoices[SalesPerson] IN VALUES(Salespersons[SalesPerson])
        )
    )
RETURN
CALCULATE(
    SUM(Transactions[AmountDue]),
    Transactions[Customer] IN SelectedCustomers

vxingshenmsft_0-1736402792381.png
I hope my method is helpful to you, if you have further questions, you can provide some sample data so that we can better help you to solve the problem!

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.



 

 

Almost, but actually I would only want to one Salesperson (example Chris Jones) invoices and any invoices that have no salesperson (the PY, CM, UC invoices) to show when I select Chris jones from the slicer. Jeff Buntz may also have open invoices from the same customer, I don't want Jeff Buntz invoices for the same customer to show up when Chris Jones is selected. I have my file here in OneDrive:  AR Aging.pbix pw: Elmo123

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.