Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm work with the following data:
The measure [Volume Realizado] brings me the total transported each day, working as it should. As the table show, it can be divided between [Meso], [Semana], [Material] and [Tipo]. Now here's the issue, I want to use the average of the last 7 days for a rolling average and I want it to keep going even after days which I don't have values (07/02 and so on), here's the expected result:
I want the measure to drill down with each context just like the SUM, so if I want to see the measure only on the [Meso] context it'll give me on value, but I want to be able to drill it even more with [Material] for example.
Here's the .pbix.
EDITED
Thanks in advance!
I'm not sure Power BI is built for this but I'd be happy to be wrong. What I'm trying to do is recreate the same type of recursive capabilities that you can do in Excel where each successive value builds on the value of the one before. Since DAX isn't recursive I don't see how that is possible.
@lulcasl Power BI is built to deal with this sort of scenario. Please provide sample data and expected output.
I've been struggling with this as well. Power BI doesn't support recursive calculations with DAX, so you can't do it the same way you'd calculate a forward looking moving average in Excel. I'm experimenting with Python scripts to try to solve this now.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |