Forum Discussion
Ghaston
7 years agoHelper I
rolling average by half hour
hi i'm using power query to connect with a SQL base that refeshes every 5 min. I have a column named "Date_Heure" in the " Date/time " form. I have a column named "Arche-Total_Entres" that i wan...
v-jiascu-msft
7 years agoMicrosoft Employee
Hi Ghaston,
I'm afraid we can't do it like that. Because we can't get the latest time due to the limits of Direct Query. How about every half an hour based on actual time?
1. Create a calculated column.
Column =
IF (
TIMEVALUE ( 'exampledata'[Date_Heure] ) > TIME ( HOUR ( [Date_Heure] ), 30, 0 ),
DATEVALUE ( [Date_Heure] ) + TIME ( HOUR ( [Date_Heure] ), 30, 0 ),
DATEVALUE ( [Date_Heure] ) + TIME ( HOUR ( [Date_Heure] ), 0, 0 )
)
2. Put the column in the X-axis.
Best Regards,
Dale
Ghaston
7 years agoHelper I
hi v-jiascu-msft
Seems like a good idea.
But infortunately, i get an error when i create the column.