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 September 15. Request your voucher.
Dear all,
as you may see in the above picture of column[current - consult].
I would like to make a column the value will be like the following:
New current - consult
22
32
null
15
39
Thanks
Solved! Go to Solution.
I make the new column be like:
((Time.Hour(DateTime.LocalNow()) - Time.Hour([CONSULT_TIME]))*60)
+((Time.Minute(DateTime.LocalNow()) - Time.Minute([CONSULT_TIME])))
to solve my problem, thanks all.
I make the new column be like:
((Time.Hour(DateTime.LocalNow()) - Time.Hour([CONSULT_TIME]))*60)
+((Time.Minute(DateTime.LocalNow()) - Time.Minute([CONSULT_TIME])))
to solve my problem, thanks all.
Use this in a custom column
= DateTime.ToText(DateTime.From(Text.Middle([#"current - consult"],2)),"mm")
this method only available to "Import" mode