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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JAKEPBI
New Member

Dax formula that will find next order in list who's order weight is less than or equal to current or

Hello,

 

I have a table with order ID's, order weight, and weight needed columns. I would like to create logic that will look at the current order and search the list for an order who's order weight value is less than or equal to the current order's order needed value. I have included an example of the table I am looking to create below:

 

Order ID

Order Weight

Weight Needed

Suggested Pool Order

A

40000

5000

B

B

2000

43000

 

C

38000

7000

B

 

I would like to find a formula that creates the "Suggested Pool Order" column.

1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @JAKEPBI ,

 

You can refer to below calculated column expression.

 

xifeng_L_0-1717082506590.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

View solution in original post

1 REPLY 1
xifeng_L
Super User
Super User

Hi @JAKEPBI ,

 

You can refer to below calculated column expression.

 

xifeng_L_0-1717082506590.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.