The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hola, estoy intentando crear una columna condicional basada en la fecha de recivido.
Tengo una tabla de pedidos en donde tenemos una columna con la fecha de recivido, obviamente algunas de las ordenes tienen esa fecha en blanco, y lo q necesito es crear una columna que diga SI fecha de recivido es BLANK entonces "No", "SI", cuando intento esto me pone "Si" en toda la columna.
Solved! Go to Solution.
Hi, please see below code.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtS11DU0VYrViVYCE2AhC11jQ6XYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Receipt Date" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Receipt Date", type date}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each if [Receipt Date]=null then "No" else "Yes")
in
#"Added Custom"
Hi, please see below code.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtS11DU0VYrViVYCE2AhC11jQ6XYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Receipt Date" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Receipt Date", type date}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each if [Receipt Date]=null then "No" else "Yes")
in
#"Added Custom"
Thanks, is working!