Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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"}
)
User | Count |
---|---|
19 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
23 | |
19 | |
16 | |
15 | |
11 |