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
Iamnvt
Continued Contributor
Continued Contributor

Show the Text values corresponding to Min operations

hi,

 

I have a table:

 

Material	Group	Demand
A	AA	4
B	AA	5
C	AA	2
D	BB	5
E	BB	5
F	CC	6

and this is the desired result:

Row Labels	Min Demand	Material Constraint
AA	            2	           C
BB	            5	         D, E
CC	            6	           F
Grand Total	2	

here is the link to the example: https://1drv.ms/x/s!Aps8poidQa5zk5AxITz93mScJMiqkw

 

thanks

1 ACCEPTED SOLUTION
affan
Solution Sage
Solution Sage

Hi @Iamnvt,

 

You can create two measures as below

 

 

Min Demand = CALCULATE(MIN(Table1[Demand]),ALLEXCEPT(Table1,Table1[Group]))

 

 

 

Material Constraint = CALCULATE(CONCATENATEX(Table1,Table1[Material],","),FILTER(Table1,Table1[Demand]=Table1[Min Demand]))

 

This is the result I have got 

 

Concatenate Rows.png

 

 

You can also download the pbix file for your reference.

https://www.dropbox.com/s/yq81t9bhk7iqvni/Show%20the%20Text%20values%20corresponding%20to%20Min%20op...

 

Please mark this post as an accepted solution if this helped you.

 

Regards,

Affan

View solution in original post

3 REPLIES 3
affan
Solution Sage
Solution Sage

Hi @Iamnvt,

 

You can create two measures as below

 

 

Min Demand = CALCULATE(MIN(Table1[Demand]),ALLEXCEPT(Table1,Table1[Group]))

 

 

 

Material Constraint = CALCULATE(CONCATENATEX(Table1,Table1[Material],","),FILTER(Table1,Table1[Demand]=Table1[Min Demand]))

 

This is the result I have got 

 

Concatenate Rows.png

 

 

You can also download the pbix file for your reference.

https://www.dropbox.com/s/yq81t9bhk7iqvni/Show%20the%20Text%20values%20corresponding%20to%20Min%20op...

 

Please mark this post as an accepted solution if this helped you.

 

Regards,

Affan

Iamnvt
Continued Contributor
Continued Contributor

thanks a lot.

Iamnvt
Continued Contributor
Continued Contributor

thanks a lot.

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.