Forum Discussion

jpt1228's avatar
jpt1228
Responsive Resident
7 years ago
Solved

Calculating average including blanks

Hello, I have read through the other messages but can't get this figured out. I have a DimAte table with Week in Year measure and an invoiced fact table with a measure for cases and also a column for...
  • jpt1228's avatar
    jpt1228
    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.