Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm new to power bi, I need to calculate rolling 5 weeks average for my weekly sales data, I tried in multiple ways but I'm getting wrong output can some one help me please. below is the data I have.
Date Dimension :
Fact table:
Thanks in advance.
Solved! Go to Solution.
Hi,
Download the PBI file from here.
Hope this helps.
Ashish/Venkata, would this solution work if you didn't have sales in every week but wanted to calculate rolling average regardless? Thank you
Hi,
Blanks are ignored when calculating averages.
Hi,
Download the PBI file from here.
Hope this helps.
@Ashish_Mathur, May I know how this DAX works
Please read up on the AVERAGEX() and DATESBETWEEN() functions. You'll then be able to understand the formula.
Sure Ashish
Hi @Ashish_Mathur , Thanks a lot it is working perfect, your response was quicker than escape velocity.
You are welcome. Thank you for your kind words.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
79 | |
48 | |
37 | |
30 |
User | Count |
---|---|
191 | |
78 | |
71 | |
50 | |
42 |