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.
Solved! Go to Solution.
Hi, @Syndicate_Admin ;
You could add a conitional column as follow:
The final show:
M language:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwtNA1NNQ1MlbSQXBMlWJ1iJQzRZOLBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date1 = _t, Date1.1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date1", type date}, {"Date1.1", type date}}),
#"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Date1.1", "Date2"}}),
#"Added Conditional Column" = Table.AddColumn(#"Renamed Columns", "Custom", each if [Date1] < [Date2] then [Date1] else if [Date2] <= [Date1] then [Date2] else null)
in
#"Added Conditional Column"
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Syndicate_Admin ;
You could add a conitional column as follow:
The final show:
M language:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwtNA1NNQ1MlbSQXBMlWJ1iJQzRZOLBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date1 = _t, Date1.1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date1", type date}, {"Date1.1", type date}}),
#"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Date1.1", "Date2"}}),
#"Added Conditional Column" = Table.AddColumn(#"Renamed Columns", "Custom", each if [Date1] < [Date2] then [Date1] else if [Date2] <= [Date1] then [Date2] else null)
in
#"Added Conditional Column"
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI @Syndicate_Admin ,
You can add a custom column and apply the formula below:
List.Min(Record.ToList(_))
Regards
KT
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.