Forum Discussion
Subtract one time from another
I understand that they need to be subtracted, but I don't understand how to do it. Can you send me a sample code?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
- 821862 years agoFrequent Visitor
ID Date of recording Unit number The name 1 28.06.2024 12.52.23 13 LD11_Cnt_Saw2_CutDone 2 28.06.2024 13.11.01 13 LD11_Cnt_Saw2_CutDone 3 28.06.2024 12.47.54 46 LD_11_Cnt_Saw2_CutStart 4 28.06.2024 13.06.15 46 LD_11_Cnt_Saw2_CutStart - 821862 years agoFrequent Visitor
Is this information enough?
(Date of recording) - Date of recording
(Unit number) - unique number
(The name) - Signal nameThere are two signals:
(LD_11_Cnt_Saw2_Cut Start) - start cutting
(LD11_Cnt_Saw2_Cut Done) - completion of the cutYou need to subtract (LD11_Cnt_Saw2_Cut Done) from (LD_11_Cnt_Saw2_Cut Start)
Thank you very much in advance!
- lbendlin2 years ago
Super User
Your sample data is inconsistent. Please validate and correct.
- 821862 years agoFrequent Visitor
Hello In the screenshot, you have displayed the table absolutely correctly. I have the same one. It is necessary to subtract the beginning of the cut (LD_11_Cnt_Saw2_Cut Start) from the end of the cut (ld11_cnt_saw2_cut) and thereby get the time for which the saw made the cut.
If necessary, I can send the file itself. But it will have the same thing as in the screenshot