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.
Good Day all,
I need some assistance if possible.
I am currently doing a calculation of time elapsed based between events on time stamps. The system stamps a change in event using the Unix time stamp. I did some table merging and some of the associated values return a null value (this is not the problem). What I want to achieve is to replace those nulls values with the local time so as to substract the local time from the time stamp.
I used the following M function with no success:
Table.ReplaceValue(#"Expanded NewColumn2",null,Duration.TotalSeconds(Duration.From(DateTime.FromFileTime)),Replacer.ReplaceValue,{"NewColumn.system_time"}).
Please help!
Regards,
Abdul
Solved! Go to Solution.
@AbdulAzizAmod wrote:
Good Day all,
I need some assistance if possible.
I am currently doing a calculation of time elapsed based between events on time stamps. The system stamps a change in event using the Unix time stamp. I did some table merging and some of the associated values return a null value (this is not the problem). What I want to achieve is to replace those nulls values with the local time so as to substract the local time from the time stamp.
I used the following M function with no success:
Table.ReplaceValue(#"Expanded NewColumn2",null,Duration.TotalSeconds(Duration.From(DateTime.FromFileTime)),Replacer.ReplaceValue,{"NewColumn.system_time"}).
Please help!
Regards,
Abdul
Try
Table.ReplaceValue(#"Expanded NewColumn2",null,Duration.TotalSeconds(Duration.From(DateTime.LocalNow()-#datetime(1970,01,01,0,0,0))),Replacer.ReplaceValue,{"NewColumn.system_time"})
and it shall work.
@AbdulAzizAmod wrote:
Good Day all,
I need some assistance if possible.
I am currently doing a calculation of time elapsed based between events on time stamps. The system stamps a change in event using the Unix time stamp. I did some table merging and some of the associated values return a null value (this is not the problem). What I want to achieve is to replace those nulls values with the local time so as to substract the local time from the time stamp.
I used the following M function with no success:
Table.ReplaceValue(#"Expanded NewColumn2",null,Duration.TotalSeconds(Duration.From(DateTime.FromFileTime)),Replacer.ReplaceValue,{"NewColumn.system_time"}).
Please help!
Regards,
Abdul
Try
Table.ReplaceValue(#"Expanded NewColumn2",null,Duration.TotalSeconds(Duration.From(DateTime.LocalNow()-#datetime(1970,01,01,0,0,0))),Replacer.ReplaceValue,{"NewColumn.system_time"})
and it shall work.
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
183 | |
80 | |
62 | |
46 | |
38 |