Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |