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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

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 @Anonymous ,

 

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 @Anonymous ,

 

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.