Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi Experts
i am trying to work out the 90 day moving / rolling average based on the index number that corresponds to a date in my FCt table. the values are correct for the first 90 days - come day 91 the value all go wrong. cannot see the wood for the trees.
90 days running total sales =
VAR MaxIndex = MAX( 'BioSales'[Index]) -- Ending period
VAR MinIndex = MaxIndex - 90 -- Starting period
VAR Result =
CALCULATE(
[Correlation Coefficient],
-- return dates between starting and ending period
FILTER( ALL( 'BioSales' ),
'BioSales'[Index] <= MaxIndex &&
'BioSales'[Index] > MinIndex )
)
RETURN
Result
@parminderkellah Better Rolling Average - Microsoft Power BI Community
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.