Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello!
I need to create a table that shows a 3 month moving average that ignores Blank values. So far I have been able to create the following standard moving average measure:
Hi @pulpfiction,
Any update for these? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @pulpfiction,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi,
See if my solution here helps - Calculate rolling sum for the past week by ignoring blank cells.
Hey Ashish and thank you for the solution provided! Unfortunately, I couldn't make it work for my case as I have missing dates in my dataset - there are days in my data without an orderline, therefore this day is missing.
this looks good @Ashish_Mathur i thought topn might be the solution and seems it is, thanks for sharing.
Proud to be a Super User!
If my previous reply helped, please mark it as Answer.
I understand what you are trying to do. Don't know of an exact solution, but you have to do away with your current DatesInPeriod logic. That only works assuming you have Values in the previous 3 months. If one of those months is 0, then you have to go back an additional month.
Thinking out loud, I think a virtual table where you find the last 3 non-zero Values. Then sum these up and divide by 3. I am by no means an expert in the syntax for this, but I hope this gives you another approach to this problem.
Hope this helps.
Hey rsbin, I will try your suggestion for a virtual table and will let you know if it worked. Thank you!
agree, you probably need to create a table with the last 3 values that are not 0 and you will not be able to use a date function because the last 3 periods will always be the last 3 months ) 0 or >0.
however if you provide data in text format, it will mean that someone can use the data to work through the issue. so post the data in text format.
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
95 | |
76 | |
72 | |
65 |
User | Count |
---|---|
140 | |
109 | |
103 | |
82 | |
73 |