Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RaviTejaLaxman
Frequent Visitor

Duration column not aggregated properly in Power BI

I have pulled Session duration from Google analytics. When I try to do aggregations on it, it is not working properly in Power BI. Duration is getting converted into a fixed decimal number while reporting. Is there any work around for this? Also, it looks like it is performing aggregations after converting it to fixed decimal number. Does anyone know what is the logic it is applying to convert duration into fixed decimal number internally? Below is the screenshot. In query editor it was showing properly as a duration. However, In reporting model it was shown as a fixed decimal number.

Capture.PNG

 

2 ACCEPTED SOLUTIONS

Thanks Eric, It worked

View solution in original post

@RaviTejaLaxman

If no further question, could you accept that reply as solution to close this thread.

For any question, feel free to post. 🙂

View solution in original post

3 REPLIES 3
Eric_Zhang
Employee
Employee


@RaviTejaLaxman wrote:

I have pulled Session duration from Google analytics. When I try to do aggregations on it, it is not working properly in Power BI. Duration is getting converted into a fixed decimal number while reporting. Is there any work around for this? Also, it looks like it is performing aggregations after converting it to fixed decimal number. Does anyone know what is the logic it is applying to convert duration into fixed decimal number internally? Below is the screenshot. In query editor it was showing properly as a duration. However, In reporting model it was shown as a fixed decimal number.

Capture.PNG

 


@RaviTejaLaxman

I'd say it is by design. There's no such "duration" type in reporting end. The logic is simple, the fraction part .1206597222*24*60*60 = 10,425 seconds, which is the same as "02:53:45". If you do care about the presentation text, check this thread Aggregating Duration/Time.

Thanks Eric, It worked

@RaviTejaLaxman

If no further question, could you accept that reply as solution to close this thread.

For any question, feel free to post. 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.