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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Emmy88_
Helper I
Helper I

Create groups based on similar values

Hi all,

 

I am trying to create groups of products based on order recipe values. Underneath an example of the data.

 

Each order can have different amounts of ingredients. I would like to make groups of the orders with similar amounts of ingredients. So if for order 1 ingredient a, ingredient b and ingredient c all are maximum 2% off e.g order 2, they should be in the same group. 

 

Does anyone know what dax to use here?

Emmy88__0-1723554275718.png

 

Greetings,

 

Emmy

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @Emmy88_ - I have created a new table, based on the above input,

 

rajendraongole1_0-1723605760508.png

 

OrderTotals =
SUMMARIZE(
    'Ingred',
    'Ingred'[Order],
    "A", SUMX(FILTER('Ingred', 'Ingred'[Ingredients] = "a"), 'Ingred'[Amount]),
    "B", SUMX(FILTER('Ingred', 'Ingred'[Ingredients] = "b"), 'Ingred'[Amount]),
    "C", SUMX(FILTER('Ingred', 'Ingred'[Ingredients] = "c"), 'Ingred'[Amount])
)
output using table chart:
rajendraongole1_1-1723605862376.png

 

 

Hope it works. Please check 

 





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

Proud to be a Super User!





View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @Emmy88_ - I have created a new table, based on the above input,

 

rajendraongole1_0-1723605760508.png

 

OrderTotals =
SUMMARIZE(
    'Ingred',
    'Ingred'[Order],
    "A", SUMX(FILTER('Ingred', 'Ingred'[Ingredients] = "a"), 'Ingred'[Amount]),
    "B", SUMX(FILTER('Ingred', 'Ingred'[Ingredients] = "b"), 'Ingred'[Amount]),
    "C", SUMX(FILTER('Ingred', 'Ingred'[Ingredients] = "c"), 'Ingred'[Amount])
)
output using table chart:
rajendraongole1_1-1723605862376.png

 

 

Hope it works. Please check 

 





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

Proud to be a Super User!





Thank you, however how do you incoporate a deviation of e.g. 2 or 5% and cluser all those rows to for example group a, b or c?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.