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
I have a PBI with a metric for calculate inputs.
Now I need a metric to calculate the average of the 7 last inputs .
For example, screenshot, for the day 02/02/2023 the an rounded to the nearest whole number average of the last 7 days is 55. Please note 28/02/2023 and 29/02/2023 there are no inputs.
Many thanks for your answers
Solved! Go to Solution.
Hi again @MTrullàs ,
Not so easy to guess what your [Coches] measure do, but could you please give this a try?
If we say that [Coches] = SUM ( Table[Column] )
Then you can try this:
This works for me, so if you cant make it work now, then I can send you an example pbix file.
Br
Marius
Thank you very much @mariussve1 for you answer!
Something is wrong, because it dosen't work as we can see in the screenshot. thank you very much for your help!
Hi again @MTrullàs ,
Not so easy to guess what your [Coches] measure do, but could you please give this a try?
If we say that [Coches] = SUM ( Table[Column] )
Then you can try this:
This works for me, so if you cant make it work now, then I can send you an example pbix file.
Br
Marius
Hello @mariussve1
Thank you very much for your answer.
Yes, you have right, I had had give more datiles.
I think we are close to the solution, but it dosen't work yet.
I think that the problem is that [Coches] isn't [Coches] = SUM ( Table[Column] ). In my PBI [Coches] is
Hi again 🙂
Could you email your .pbix file to marius(dot)sve1(a)gmail(dot)com ?
Marius
Hi,
Could you try this:
AVERAGEX(TOPN(7,'Table','Table'[Date],DESC),[ENTRADAS])
Br
Marius
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |