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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

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 =
SUMX (
    FILTER ( 'Bill To Customer Dim', [PSE1Date Range Measure] > 0 ),
    SUMX (
        FILTER ( 'Ship To Customer Dim', [PSE1Date Range Measure] > 0 ),
        [Distinct Count of RMAs]
    )
)

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

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.


Regards

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

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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