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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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