Forum Discussion
Calculating average including blanks
- 7 years ago
Ok, so what I ended up doing is creating a sales = calculate(sum(Dollar Sales)) and another one is number of weeks =distinctcount(dimdate[week in year]) and then divide (sales,number of weeks) to the the correct average then I filter on the page for number os specific weeks (Last 4 weeks, last 10 weeks etc).
Thanks for giving me the idea to create the seperate measures and then divide them.
Try adding 0 to your measure.
Ex:
Measure = Calculate(SUM(Table[Column]),FILTER())+0
Then use that SUM measure result in your Average calculation.
- Chihiro7 years agoSolution Sage... What I gave is formula construct ;)
You will need to supply appropriate arguments.
If you need more specific help, it would help if you can upload sample model.- jpt12287 years agoResponsive Resident
Ok, so what I ended up doing is creating a sales = calculate(sum(Dollar Sales)) and another one is number of weeks =distinctcount(dimdate[week in year]) and then divide (sales,number of weeks) to the the correct average then I filter on the page for number os specific weeks (Last 4 weeks, last 10 weeks etc).
Thanks for giving me the idea to create the seperate measures and then divide them.