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
AviBI
Frequent Visitor

Creating a measure that excludes a subset that is in a lookup table

Hi all

 

Appreciate if you could help with this

 

So I have dataset which comprises all stores within England and I am creating some reports for comparing items performance of a subset (stores of a certain company - lets call it ACME) with the Rest of England Stores. The Stores within the subset are in a separate lookup table. 

 

I have defined the following measures:

 

NationalItems = Sum('ItemsData'[Items]) - There is an Items Column in the Items Table 
ACMEItems = Calculate ('ItemsData'[NationalItems] , FILTER(ACMEStores,ACMEStores[Group] ="ACME")) - I have a Group Column in the lookup table (ACMEStores) that has the string value "ACME" in each row. This then allows me to use this column as a filter on the main data table
 
Now my question is how do I calculate a measure that will give me the Rest of England items i.e. all items for those stores that are not ACME stores. 
 
Quick response would be much appreciated
 

 

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @AviBI ,

 

 

ACMEItems = Calculate ('ItemsData'[NationalItems] , FILTER(ACMEStores, NOT ACMEStores[Group] IN {"ACME"})

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Hi Harsh

 

Thanks for the speedy response and solution

 

Your solution did not work for some reason but I did manage to find a solution. I basically filtered the Data Table using "<> ACME" condition on the relevant lookup table column 

 

Many thanks once again for your solution 

 

 

HI @AviBI ,

 

Happy to helps 🙂

 

 

Regards,

Harsh Nathani

 

Appreciate with a Kudos

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.