Forum Discussion
Creating DateTime relationship, epoch time
Hi vanessafvg and v-jiascu-msft I created this puredate column and a many to one relationship between them ( Dates[puredate} and Data[date] ) but it didn't solve the problem. Then I also tried to put DateTime type only to date type (on both tables) as Vanessa said, but only thing that this seemed to affect was that I can not anymore see the time in visualisation table on Data[Date] section as in snapshot below.
-Niko
Hi Niko
As your picture showed, it seems you added the [puredate] to a wrong table. You should add it to table [data]. Please have a try.
Best Regards!
Dale
- Niko9 years agoFrequent Visitor
I got this working! Firtsly I created date/time from epoch timestamp and then separated them to their own columns "date" and "time" after this I followed this instructions to create dynamic date calendar and after that I followed this instructions to create time "calendar".
All tought I'm now facing a new problem with time calendar. As my data has been collected very acurate with epoch timestamp I'm now having times like
0:00:18
0:01:00
0:01:12
0:01:320:02:00
In visualisations it's only showing the data which has comed exactly 0:01:00 and 0:02:00 but not the results between them. What would be the best way to aggregate/summarize/round down the data to minute level? I tried MROUND(Data[Time];00;01) but didn't work ^^
Br.Niko
- Niko9 years agoFrequent Visitor
I've got this now working! Firstly I converted the epoch timestamp to time/date. Then I separated time and date to their own columns. After that I followed up these instructions to create dynamic date and time calendars with power query
http://databear.com/2016/11/08/power-bi-tip-dynamic-calendar-table/
All tought I'm having a bit issue with time calendar. Since I've collected the data very acurate with epoc timestamp . I might have times like
0:00:18
0:01:00
0:02:14
0:03:45
0:04:00...
Time calendar has been created on minute level and that is the level where I wanna track also my data.
In visualisations mode it's now only showing the timestamps that have exact the same value. In this case it would show only the values behind the time 0:01:00 and 0:04:00. What would be the most convenient way to get rid off seconds and convert time to nearest minute?
Br.Niko
- v-jiascu-msft9 years agoMicrosoft Employee
Hi Niko,
You could add a new column with this formula:
Bridge = FORMAT ( [Minute], "hh:mm:00" )
Best Regards!
Dale
- v-jiascu-msft9 years agoMicrosoft Employee
Hi Niko,
Could you please tell me if your problem was resolved? Could you please share the answer or mark the proper answer as solution if it's convenient for you? That will be a help to the others.
Best Regards!
Dale- Niko9 years agoFrequent Visitor
Hi v-jiascu-msft
I've been busy with some other project but tried this trick today and it didn't work. I think this might work if I would do it in query mode (with M) not with DAX. Like I did the date and time table and then they started working. Is there someone reading this post who would know how to do this (TimeNoSec = FORMAT ( [Time]; "hh:mm:00" ) in M?
-Niko