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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Sum Data after every 30mins

Hi,

 

My data is in every 5 mins but I need to sum it after  every 30 mins.

Please any workaround or DAX to achieve this??

 

See Sample Data Below:

 

DataTimeFLOW
01/09/2017 00:000
01/09/2017 00:010.2
01/09/2017 00:050
01/09/2017 00:050.2
01/09/2017 00:100
01/09/2017 00:100.3
01/09/2017 00:150
01/09/2017 00:160.2
01/09/2017 00:200
01/09/2017 00:210.2
01/09/2017 00:250
01/09/2017 00:250.3
01/09/2017 00:300
01/09/2017 00:310.2
01/09/2017 00:350
01/09/2017 00:350.3
01/09/2017 00:410
01/09/2017 00:410.2
01/09/2017 00:450
01/09/2017 00:450.2
01/09/2017 00:500
01/09/2017 00:510.3
01/09/2017 00:550
01/09/2017 00:560.2
01/09/2017 01:000
01/09/2017 01:010.2
01/09/2017 01:050
01/09/2017 01:060.3
01/09/2017 01:100
01/09/2017 01:110.2
01/09/2017 01:150
01/09/2017 01:150.3
01/09/2017 01:200
01/09/2017 01:210.2
01/09/2017 01:250.2
01/09/2017 01:300

 

 

7 REPLIES 7
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

In this scenario, you need to add Hour, Minute, and Date column in your table. Then create a first/second half hour bucket column based on Minute column. Now you can create measure to sum the Flow total group on Date, Hour, and Half Hour.

 

Hour = HOUR(Table6[DataTime])
Date = Table6[DataTime].[Date]
Minute = MINUTE(Table6[DataTime])
Half Hour = IF(Table6[Minute]<=30,"First Half","Second Half")

 

Half Hourly Total =
CALCULATE (
    SUM ( Table6[FLOW] ),
    ALLEXCEPT ( Table6, Table6[Date], Table6[Hour], Table6[Half Hour] )
)

444.PNG

 

Regards,

Anonymous
Not applicable

Hi,

Please how do I create Hour, Minute, and Date column.

How do I create a first/second half hour bucket column based on Minute column. ?/

 

Many Thanks

@Anonymous

 

See my updated reply.

Anonymous
Not applicable

Hi ,

 

I've  created Hour, Minute, and Date column.

I've also created a first/second half hour bucket column based on Minute column.

But the resulting sum of the data is  the same value in all the 30mins intervals.

 

DataTimeFLOW
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6
01/09/2017 00:002940761.6

 

I've sent the pbix file to your mail.

 

Many Thanks for your help

@Anonymous

 

I don't find any issue in your .pbix, it shows same total under each "Half Hour" (Your Minute column is based on DateTimePrevious, not DateTime) which is correct. 

 

344.PNG

 

Regards,

Anonymous
Not applicable

Hi,

 

As mentioned,  I want my resulting data/chart to respond when i click a  slicer in my visual.

 

I want to be able to click a slicer, select a day in my first graph(stacked column) and the second graph (Line Graph) with the 'Sum Data after every 30mins' responds appropriately to the particlar day selected.

The 'Half Hourly Total' is not reponding when a particular slicer is selected.

Please where can i send you the PBIX file??

See how I want my graph to display

 

 

30.PNG

 

 

 

30min.jpg

Anonymous
Not applicable

 

Hi,

 I have been looking around and still cant find any solution to 'Sum Data after every 30mins' and for it to respond to selected day

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors