Forum Discussion
Show milliseconds from data source with Power Query
That's a recognisable format of native data type of time; Time.From() does the trick.
- ronrsnfld2 years agoSuper User
That is not available in Power Query; only in Power BI
- slcekala772 years agoNew Member
Thanks for the suggestion. But Time.From([Timestamp]) yields the same result - it displays without the milliseconds and I'm trying to get it to display in the power query cells with milliseconds. Ultimately I'll be doing math with those milliseconds.
- ronrsnfld2 years agoSuper User
I think you are presenting an XY problem.
Doing the math has nothing to do with the format you see in the Power Query cell. Using the duration type will allow you to see the milliseconds. Using the time type will not. But in either case, the milliseconds will be preserved in the value stored, so there should be no problem doing math.
If you need to see it exactly as you show for some reason, then give it a text type and just use the appropriate conversion functions when you do the math.
- slcekala772 years agoNew Member
Thanks for the reply. I do understand that the values will be preserved in the data. I'm trying to get all the way through PQ before dabbling in PowerBI, so I'll keep in mind that this is possible in PowerBI and look at that sooner than I otherwise might have. I'll also take a closer look at the duration type.
I'm transitioning this data from a in-worksheet dataset where one of the things I'm computing is the difference in milliseconds between rows to identify those records where the difference is over (for example) 2 milliseconds. But I'm having trouble understanding what to do where and I may be too focused on what it looks like in PQ for the moment 🙂