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
aBerg
Helper II
Helper II

Grouping data each 15 minutes

Hi !

 

I would like a help for an application that I have to develop. I have a table (fData) with granularity of minutes and I need to group by every 15 minutes, according to the image.

 

Also the .PBIX application.

 

groupedtable.PNG

 

Thanks if anyone can help me !Smiley Happy

 

Greetings ! 

1 ACCEPTED SOLUTION

Hi @aBerg ,

 

You can add a calculate column to extract whole quarter datetime from datetime field, then use it and flowgas(summary mode average) to create a table visual.

 

Formula:

Datetime Group =
DATEVALUE ( [DateTime] )
    + TIME ( HOUR ( [DateTime] ), MINUTE ( [DateTime] )
        - MOD (
            MINUTE ( [DateTime] ),
            15
        ), 0 )

13.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi  @aBerg ,

 

You can write a measure to check minute part of datetime values to return tag, then drag it to visual level filter to keep Y result records:

IsQuarer =
IF ( MOD ( MINUTE ( MAX ( fData[DateTime] ) ), 15 ) = 0, "Y", "N" )

8.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft !

 

Thank you for your time spent and return for help. 
Actually that way it is not quite what I need, so it's filtering the values every 15 minutes and in fact I need an average of the values every 15 minutes.

 

DataExcel.png


Please see the following file formula in Excel: Data.XLSX

 

 

Greetings !

Smiley Happy

Hi @aBerg ,

 

You can add a calculate column to extract whole quarter datetime from datetime field, then use it and flowgas(summary mode average) to create a table visual.

 

Formula:

Datetime Group =
DATEVALUE ( [DateTime] )
    + TIME ( HOUR ( [DateTime] ), MINUTE ( [DateTime] )
        - MOD (
            MINUTE ( [DateTime] ),
            15
        ), 0 )

13.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi Everyone !

 

Could someone help me and give me an idea how to implement it ?

Sorry, I really need that ...  Smiley Frustrated

 

Grettings ! Smiley Happy

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.