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

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
Employee
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
Employee
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
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.