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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Exclude certain customers in my YTD measure

Hello Community  -  We have a need to exclude some of our intra-company revenue  from our YTD number.   These customer are identified by a CustomerID in the master customer table.    My current YTD measure is below, and works perfectly fine.  

 

But how do I get it to exclude these customers?   Essentially, I just need to filter them out.    Of course I can do this using the filters in the fitlers area, but I need it to be embedded in the measure itself.   

 

YTD.png

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Hard to know for sure since you didn't provide any data or a visual of your model, but if I had done the model, I would be able to add another filter to my CALCULATETABLE() that would be:

 

Customer[CustomerType] <> "InterCompany"

 

If that doesn't help, please post back with more info.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Can you show me part of your data if it is not confidential?

 

Best Regards,
Kelly

edhans
Super User
Super User

Hard to know for sure since you didn't provide any data or a visual of your model, but if I had done the model, I would be able to add another filter to my CALCULATETABLE() that would be:

 

Customer[CustomerType] <> "InterCompany"

 

If that doesn't help, please post back with more info.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

The two answers provided me with an idea on how to solve this so both were helpful!

 

Thank you!

Great! Glad your project is moving forward.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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