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.
I have a model with the Fact table and the date dimension. How can I rolling average by n days considering the dates that do not have sales included within a 7-day moving average, for example?
I used this formula but it only consider days with sales
Solved! Go to Solution.
Try replacing blanks with 0.
Ventas = IF( ISBLANK(SUM([value])), 0, SUM([Value]) )
Hi,
This pattern should work
Measure = divide(calculate([Amount],datesbetween(calendar[date],min(calendar[date])-6,max(calendar[date]))),7)
Hope this helps.
Hi,
This pattern should work
Measure = divide(calculate([Amount],datesbetween(calendar[date],min(calendar[date])-6,max(calendar[date]))),7)
Hope this helps.
Try replacing blanks with 0.
Ventas = IF( ISBLANK(SUM([value])), 0, SUM([Value]) )
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 |
---|---|
113 | |
103 | |
76 | |
66 | |
63 |
User | Count |
---|---|
142 | |
105 | |
102 | |
81 | |
68 |