Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All,
Please note that I am able to get the Last 7 days rolling Average for the below chart by Using the following Dax
In this case, the Last 7 Days' AVG should be about 350/7,350/6,... so on
So how can I solve this?
Hoping for your support Guys...
Thanking a lot
Faithfully,
Rifdhy (+94770848216)
Solved! Go to Solution.
Hi @Anonymous
How about try these measures
7 Days Moving SUM. =
CALCULATE (
[Total Fuel Consumed],
ALL ( 'Calendar'[Date] ),
DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), -7, DAY )
)# of Days =
CALCULATE (
DISTINCTCOUNT ( 'Calendar'[Date] ),
ALL ( 'Calendar'[Date] ),
DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), -7, DAY )
)Last 7 Days AVG = DIVIDE ( [7 Days Moving SUM.] + 0, [# of Days] )
In addition, did you use 'Calendar'[Date] column on X-axis in the visual? It is expected there.
----------------------------------------------------------------------
If this reply helps solve the problem, please mark it as Solution! Kudos are appreciated too!
Hi @Anonymous
How about try these measures
7 Days Moving SUM. =
CALCULATE (
[Total Fuel Consumed],
ALL ( 'Calendar'[Date] ),
DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), -7, DAY )
)# of Days =
CALCULATE (
DISTINCTCOUNT ( 'Calendar'[Date] ),
ALL ( 'Calendar'[Date] ),
DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), -7, DAY )
)Last 7 Days AVG = DIVIDE ( [7 Days Moving SUM.] + 0, [# of Days] )
In addition, did you use 'Calendar'[Date] column on X-axis in the visual? It is expected there.
----------------------------------------------------------------------
If this reply helps solve the problem, please mark it as Solution! Kudos are appreciated too!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 5 | |
| 5 |