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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Utsav279
New Member

How to multiple order numbers at a line level?

Hi Power Bi Team, I am trying trying to solve a problem I am running into a power query. I have an order number with more than one line and if only one item is being held for that order I want the rest of the occurrence of other lines of the same order number to be held.

 

Ex: 

Order Num H/O  Hold Reason

96787229HeldMIN_ExpectedDate

 

96787229Opennull

 

I have created a conditional column to calculate this H/O column: 

Utsav279_0-1637091011598.png

 

How I want it displayed is if one Order number is held then the rest of the same order number lines should show being held even if they have shipped and not meet the condition of being null in the screenshot.

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Utsav279 

i think you can use DAX to create a column

Column = maxx(FILTER('Table','Table'[order]=EARLIER('Table'[order])&&'Table'[H/O]="Held"),'Table'[H/O])

1.PNG





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Utsav279
New Member

@ryan_mayu Thank you so much for helping with this issue the dax code worked and appreciate your support!

you are welcome





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Utsav279 

i think you can use DAX to create a column

Column = maxx(FILTER('Table','Table'[order]=EARLIER('Table'[order])&&'Table'[H/O]="Held"),'Table'[H/O])

1.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors