Hi All, I am migrating a report from SSRS to Power BI. For the SSRS report source is SQL Server, whereas for Power Bi source is SSAS Tabular model. I am not able to find the exact DAX query for the below SSRS SQL Query. Please find the below 2 Sql statements in the query. Below SQL Query start date and end date are parameters in SSRS. 1)------------------------------------------------Where list---------------------------------------- WHERE (CAST(RecordDate AS date) > DATEADD(day, -7, @StartDate)) AND (CAST(RecordDate AS date) <= DATEADD(day, 0, @EndDate)) 2)-------------------------------------------------Select list---------------------------------------- SUM (GasProduction/7) OVER (ORDER BY RecordDate ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) AS Avg7DayGas Thanks in advance.