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
SRK_23
Helper I
Helper I

Calculate Average time

Hi, how to calculate average time by "PlaformEntityName" ? 

 

I've got 3 calculated column which are:

 

 
Duration_Max = CALCULATE( MAX(dm_pageview_company[Date]) , 
                          FILTER( dm_pageview_company , 
                                  dm_pageview_company[SessionId] =  EARLIER(dm_pageview_company[SessionId]) 
                                ) 
                            )
 
 
 
Duration_Min = CALCULATE( MIN(dm_pageview_company[Date]) , 
                          FILTER( dm_pageview_company , 
                                  dm_pageview_company[SessionId] =  EARLIER(dm_pageview_company[SessionId]) 
                                ) 
                            )
                        
 
 
Duration_Calc = [Duration_Max] - [Duration_Min]

 

 

I've got a tab like that and would like to get the average session time by 'PlaformEntityName' which are a Text field with client's name:

 

[URL=https://www.casimages.com/i/181213015203273498.png.html][IMG]https://nsa39.casimages.com/img/2018/12...]

2 ACCEPTED SOLUTIONS

Hi @SRK_23

I'm uploading back your file here with the measure i posted earlier included.

View solution in original post

Hi @SRK_23

Yeah, it's correct. That's the same. I said earlier that the measure shows the result in minutes

2,37 minutes is 2 mins and 22 seconds, 2:22

View solution in original post

10 REPLIES 10

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.