Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
41 | |
23 | |
21 | |
20 | |
13 |
User | Count |
---|---|
128 | |
60 | |
59 | |
28 | |
20 |