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
orthain
New Member

Allexcept from two tables

Hi, 

 

I am trying to solve one issue. I have several tables in my PowerBI and I am trying to create new Measure.

Used tables are:

1) BusinessCase for profit

2) Products for categories

 

The measure should calculate total profit from table BusinessCase no matter to filters except filters from column BusinessCase[OrderDate], BusinessCase[Phase] and Product[Category]

 

I created formula, that works with AllExcept as here: TotalProfit = CALCULATE(SUM(business_case[Profit]); ALLEXCEPT(business_case;business_case[Phase]; business_case[OrderDate]))

 

Could you, please, help me how to add into formula next exception pro Product[Category]? 

 

THX

2 REPLIES 2
answeriver
Helper IV
Helper IV

Anyone can help in this topic??

 

KHorseman
Community Champion
Community Champion

You should just be able to add a second ALLEXCEPT function for the Product table.

 

TotalProfit = CALCULATE(
	SUM(business_case[Profit]);	
	ALLEXCEPT(	
		business_case;	
		business_case[Phase];
		business_case[OrderDate]
	);
	ALLEXCEPT(
		Product;
		Product[Category]
	)
)




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

Proud to be a Super User!




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.

Top Solution Authors