Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Guys,
in the M language, how could I get just the month and year of each column so that I can perform a comparison?
For exemplo:
(Column data_alteracao_status) (CreatedDate)
if 11/2022 < 10/2022 then null
I would like to compare month and year only, without full date
Solved! Go to Solution.
in case of no less I wrote "OK". instead you can paste what you want
if
Number.From(Date.ToText(
Date.From([data_alteracao_status]),[Format= "yyyyMM"])) <
Number.From(Date.ToText(
Date.From([CreatedDate]),[Format= "yyyyMM"])) then null else "OK"
in case of no less I wrote "OK". instead you can paste what you want
if
Number.From(Date.ToText(
Date.From([data_alteracao_status]),[Format= "yyyyMM"])) <
Number.From(Date.ToText(
Date.From([CreatedDate]),[Format= "yyyyMM"])) then null else "OK"