Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I want to ask a help for solving my problem
I have a table like this
I need to replace the null value with these conditional :
Order = Arrive, the status = delivered
Without replace the cell that have been filled
My expectation table like this
But when I write the M code
= Table.ReplaceValue (#stepbefore, each [Status], each if [Status]=null and [Order qty]=[Arrive qty] then "Delivered", else[Status], Replacer.ReplaceValue,{"Status"})
There is nothing change
Please help me to solve this problem
Thank you..
Solved! Go to Solution.
Hello, @Mars3442 try custom replacer function
Table.ReplaceValue(
stepbefore,
"",
each ([Order Qty] = [Arrive qty]) and ([Status] = null),
(value, old, new) => if new then "Delivered" else value,
{"Status"}
)
Hello, @Mars3442 try custom replacer function
Table.ReplaceValue(
stepbefore,
"",
each ([Order Qty] = [Arrive qty]) and ([Status] = null),
(value, old, new) => if new then "Delivered" else value,
{"Status"}
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 2 |