Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
My first attempt at moving averages. My problem is whether I have "-3", or "-12" its the same number. All fields are coming from the same table. Also wondering if part of the problem is there are multiple "CostNet" entries for each "ReceivedDate".
An example of the RTP table:
Received Date CostNet
1/1/2017 100
1/1/2017 50
1/3/2017 50
2/2/2017 75
2/2/2017 100
2/10/2017 50
....and so on
The measure:
MovingAverage3Months_CostNet =
CALCULATE (
sumx(RTP,RTP[CostNet]),
DATESINPERIOD (
RTP[ReceivedDate],
LASTDATE ( RTP[ReceivedDate] ),
-12,
MONTH
)
)
Solved! Go to Solution.
Hi,
Do you have a separate date dimension table? That would be the first thing to do. Mark this as data table, and you can use time intelligence functions. Link your cist table to the date table.
More info, check this post.
Hi,
Do you have a separate date dimension table? That would be the first thing to do. Mark this as data table, and you can use time intelligence functions. Link your cist table to the date table.
More info, check this post.
Thanks!
You're welcome. Glad it worked for you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 120 | |
| 95 | |
| 70 | |
| 69 | |
| 65 |