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
Hello together
My Power BI contains sales figures from 05/30 to 09/30/2022 for 40 customers at 6 different locations. The Power BI contains three datasets (3 static and 1 dynamic):
I am trying to calculate a rolling 14-day (However, the measure should be valid for any number of days) average of sales per day in the following data set. The programmed rolling 14-day average (see below) works in principle.
However, I am struggling with the following problem:
I have already tried to extend and modify the formula, but none leads to the solution.
The Power BI is in the link below so that you can see the data structure for yourself:
https://drive.google.com/file/d/1T5wr-OFZtnlr-q8XTvgj7VEupkwpfdgq/view?usp=share_link
I would be very grateful for your help, because I really do not know what to do.
Kind regards
hello @Anonymous , in your Dataset (or database) are the sales on Weekends 0 or null?
There is a simple way to transform your blanks into 0's on your Table ( I am talking about the Sales Amount column). Create a new Measure like this: Measure =
Hello ||PowerBlog
In my database there is no entry for the weekends. For instance on 11.06.2022 there is in the dynamic data - sales file no entry, it does not exist, because there are not sales on this date. So I cannot transform it. Take a look in the Power BI file I shared where you see the structure.
Do you think it would be useful if I would include for all firms the dates where no sales is with 0?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 5 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 25 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |