Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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.
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.
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 ReportingCheck out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
113 | |
105 | |
95 | |
58 |
User | Count |
---|---|
175 | |
147 | |
134 | |
105 | |
82 |