Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I've got a large table of values (added a picture for clarity)
The problem I'm having is that while some of the SO's and SI's have the same Order Number, only the SO's have a serial number. What can I use to make a new column which copies the serial numbers from the SO's that have matching ON's to their corresponding SI rows?
Any help is appreciated!
Solved! Go to Solution.
There are different ways to accomplish this, but I believe this should work for you:
SerialNoRevised =
VAR _Order = [OrderNo]
VAR _SerialNo = CALCULATE( MAX([SerialNo]), FILTER( SN, SN[OrderNo] = _Order && SN[Source] = "SO" ))
RETURN
_SerialNo
OrderNoSourceSerialNoSerialNoRevised
| 1 | SO | 123 | 123 |
| 1 | SI | 123 | |
| 2 | SI | 456 | |
| 2 | SO | 456 | 456 |
In the future it would help to post sample data as a table, not an image. This will help in facilitating answers to your posts.
Regards,
Try this:
OrderSerialNumber =
VAR ThisOrderNumber = SerialTest[OrderNumber]
RETURN
MINX(
FILTER(
SerialTest,
SerialTest[OrderNumber] = ThisOrderNumber &&
SerialTest[RecordSource] = "SO"
),
SerialTest[SerialNumber]
)
There are different ways to accomplish this, but I believe this should work for you:
SerialNoRevised =
VAR _Order = [OrderNo]
VAR _SerialNo = CALCULATE( MAX([SerialNo]), FILTER( SN, SN[OrderNo] = _Order && SN[Source] = "SO" ))
RETURN
_SerialNo
OrderNoSourceSerialNoSerialNoRevised
| 1 | SO | 123 | 123 |
| 1 | SI | 123 | |
| 2 | SI | 456 | |
| 2 | SO | 456 | 456 |
In the future it would help to post sample data as a table, not an image. This will help in facilitating answers to your posts.
Regards,
Thank you! I'll do so next time.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 86 | |
| 69 | |
| 37 | |
| 29 | |
| 26 |