This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello Team,
I was wondering if i could like a average per row across 5 days dax.
Some background: Trades is a measure with counts the number of occurenaces happens in a table (i.e. counting duplicates)
Here is my data image:
I can replicate it in excel very simple: with a simple formula =AVERAGE(C2:C6) in cell d2 and in d3 is goes down by 1 i.e d3 cell = average(C4:C7) etc
thanks
viral
Solved! Go to Solution.
@ViralPatel212 , You can use these measures
Using date table
Rolling 5 = CALCULATE(Averagex(Values('Date'[Date]) , [Your measure]) ,DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-5,Day))
Using window
Rolling 12 = CALCULATE(Averagex(Values('Date'[Date]) , [Your measure]) , WINDOW(-4,REL, 0, REL, ADDCOLUMNS(ALLSELECTED('Date'Date]),ORDERBY([DAte],asc)))
Use new visual calculation
MOVINGAVERAGE([Net], 5)
@ViralPatel212 , You can use these measures
Using date table
Rolling 5 = CALCULATE(Averagex(Values('Date'[Date]) , [Your measure]) ,DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-5,Day))
Using window
Rolling 12 = CALCULATE(Averagex(Values('Date'[Date]) , [Your measure]) , WINDOW(-4,REL, 0, REL, ADDCOLUMNS(ALLSELECTED('Date'Date]),ORDERBY([DAte],asc)))
Use new visual calculation
MOVINGAVERAGE([Net], 5)
@amitchandak That worked partly. I have a identifier in my date table called Weekend. If its a Weekend say YES else No.
How do i tweak the measure to exlcude weekend?
thanks
Viral
h
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 49 | |
| 47 | |
| 41 | |
| 21 | |
| 19 |