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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.