Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Dear all
When I try to load duration from Google Analytics, I encountered an error as below.
While loading data into Power BI and editing in Power Query Editor, it looks fine.
Data from Google Analytics while loading to Power BI
However, when I clicked "Close & Apply" and visited the data in "Data", the column turned into a decimal number and had no way to make it duration in the column tool tab.
Result in "Data"
Does anyone deal with this issue before and may have any solution? Please kindly advise.
Thank you!
Solved! Go to Solution.
Duration is not a supported data type in the DAX model, so when Power Query loads it, it converts it to decimal. 1 day is 1. 12 hrs would be .5. And so on. So it is fractions of day. Not a bug, or anything you are doing wrong. Just how it works.
So in your example, 3 becomes 3/24, or .125, then 21min becomes 21/60/24, or .0083333, and so on, then it is all added up and becomes the .13* number you see.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingDuration is not a supported data type in the DAX model, so when Power Query loads it, it converts it to decimal. 1 day is 1. 12 hrs would be .5. And so on. So it is fractions of day. Not a bug, or anything you are doing wrong. Just how it works.
So in your example, 3 becomes 3/24, or .125, then 21min becomes 21/60/24, or .0083333, and so on, then it is all added up and becomes the .13* number you see.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUser | Count |
---|---|
121 | |
72 | |
71 | |
57 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
65 | |
55 |