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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
OmarAl
Regular Visitor

Condition Column to return value from different row

Dear Team,

I hope you're doing great! 

 

Could someone please help me with the following if statement I'd like to add to a conditional column in Power Query?

Unfortunately, PO value is given as  "#/#" in one column. However, the same value can be given from different row where the Document Text is identical to the case where PO is "#/#". Ideally, I'd like to exract the figure from the row where the Document Text is identical or duplicated and PO is e.g. 450000xxx and not '#/#"

 

OmarAl_0-1722340624794.png

 

1) PO.UP is #/#

2) However, Document Text is identical in another row in the same table

3) Whereas in the identical row has almost always a value in the so called PO Colum e.g. 45xxxxxxx

4) Ideally, I'd like to assign a new PO.UP2 colum to extract the value in step (3) 

 

Any ideas how to do this with Power Query?

 

Thanks a lot for the help

1 REPLY 1
Anonymous
Not applicable

Add a custom column:
= if [PO] = "#/#" then null else [PO]

Fill this column up
https://learn.microsoft.com/en-us/power-query/fill-values-column

 

Andreas.

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.