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

Group classification if one of its components satisfy a condition

Hi community,

 

We currently sell sets which are a combination of multiple components. 

For example a Farm Set (item code 12345) is made of three components: cows (item code 12344), chicken (item code 12343) and pigs (item code 12342).

I would like to have a rule that shows that the Farm Set is out of stock if one of the three components have a stock less than 3 for example.

Does anyone know a formula that could help me to achieve that?

 

I have a table that looks like this:

 

SET NAMESET CODECOMPONENT CODECOMPONENT NAMECOMPONENT STOCK
FARM SET1234512344COWS5500
FARM SET1234512343CHICKEN1870
FARM SET1234512342PIGS1251

 

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@marianamarques,

Please check the DAX in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1Nok1jyeIy6V0Y47bBF

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@marianamarques,

Please check the DAX in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1Nok1jyeIy6V0Y47bBF

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks a lot Lydia! It works!

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.

Users online (2,795)