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 everyone!
Thank you for your answers.
I have a problem when graphing... I have used different methods of calculating averages but I do not find the solution. If I extend the X axis from the beginning my problem is solved, it is only at the time of filtering with the X axis.
In my X axis I have sales from 2017 onwards, but through filters I want to show the last year, however, when filtering the graph, this considers me the first sale on the first date and not the previous sales, showing me the average only with the value of the first date, but in my data if I have past information. How could I fix it? And so I take the months before the filter?
I have used several codes and the one I use now is as follows:
Currently it is in this way, the first two months are wrong.
ErróneoErroneous
This is how the graph should be, taking the past information and showing the average of the last 3 months in the current graph.
Así debería serThat's how it should be.
Anyone with any possible solution?
I believe the issue is that your date filter which starts at Q1 2021 is excluding the months in 2020 that you need for the three-month average. The article below provides a solution that you may be able to adapt:
https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/
Proud to be a Super User!
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 |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |