Showing results for 
Search instead for 
Did you mean: 
Helper IV
Helper IV

how to add filter context to this measure?

Hello Community  -   I have this measure which works somewhat, but what I actually need to use instead of just the table (Bill To Customer Dim), is a specific column inside of the table (customer number).    Same for the ship to customer.   


I've tried a few things and am getting things like the placeholder error message.   In basic english, my goal would be to filter by something like "bill to customer dim, customer number" whereby customer number is the expression.  


How can this measure be modified to allow for that additional filter context?   I have the customer number on the two customer tables, so I just need to figure out how to get the measure to filter by those specific columns.  


PS1Date Range Distinct Count of RMAs =
    FILTER ( 'Bill To Customer Dim', [PSE1Date Range Measure] > 0 ),
    SUMX (
        FILTER ( 'Ship To Customer Dim', [PSE1Date Range Measure] > 0 ),
        [Distinct Count of RMAs]

Super User
Super User

Hi @texmexdragon2 ,


Being the calculation based on a filter of the Bill to Customer Dim Table this should by default have the filter you refer to.


Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Miguel Félix

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português

Helpful resources

Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.