Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi guys,
We are connecting Power BI Desktop to the Google Analytics online service, and are having an issue with the duration fields (e.g. Avg. Time on Page). On Google Analytics this is in the format HH:MM:SS, however when we pull this field back into the BI report it gives a decimalised format.
An example of this is a time of 00:00:18 is showing on the BI report as 0.00431.
We've created a DAX formula to try converting this...
Duration = MOD(MOD('Secure Website Data (2)'[Avg. Time on Page],3600),60)
...however it is coming up with the same decimalised value.
Could anyone please tell us how the 0.00431 value in Power BI relates to the time duration in GA?
Thanks in advance for your help.
Calum
Solved! Go to Solution.
Hi @cmackay,
What's the data type that column? You can change the data type to Time.
Regards,
Charlie Liao
Hi @cmackay,
What's the data type that column? You can change the data type to Time.
Regards,
Charlie Liao
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-data-types/
Duration is the data type used when we first import our data and can view it as a type before we load the data. From there, Duration is converted into a decimal which we need to convert back.
Tom.
See my blog post here:
http://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
Also vote for a true time duration in Power BI Desktop here:
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/8814178-field-of-duration-type
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
31 | |
29 | |
26 | |
24 |
User | Count |
---|---|
55 | |
49 | |
43 | |
15 | |
13 |