Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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"}
)
Check out the July 2025 Power BI update to learn about new features.