0

I have two columns with OpenTasks and ClosedTasks, both have values either 0 or 1.

enter image description here

Then I use matrix grouped by date and want to get an average for each column. But number seems incorrect to me. 0.44 and 0.56 I tried to create measure, but gives me the same result.

What am I missing?

enter image description here

UPDATE: On a picture below I'd expect Sum(TotalTasks)/ (Number of Total Tasks per day) which is: 2,818 / 10 = 281 Is that would be average, am I right? Sorry I'm confused.

enter image description here

Serdia
  • 4,242
  • 22
  • 86
  • 159

3 Answers3

2

It looks to me like the measure is averaging the task per row level. I believe you want to average them at the day level. Take the sum of tasks and divide by number days to get the average count per day.

Alexis Olson
  • 38,724
  • 7
  • 42
  • 64
1

The use of the AVERAGE function runs in the whole column visible in the current filter context, meaning that it returns the average based on each row, you need to use an iterator function like AVERAGEX to get your desired result

Zubda
  • 943
  • 1
  • 6
  • 16
  • To learn more about DAX I would recommend Marco Russo and Alberto Ferrari, they are (in my opinion) the best in DAX, there are 2 great videos on YouTube from them; 1. DAX 101 2. DAX 50 – Zubda Feb 09 '18 at 21:43
  • thank you for learning recommendation. Will definitely look at it. – Serdia Feb 09 '18 at 23:50
0

I found that if I went into my data set and created a column Called KPI Trend and just made it = 1, then use that as my Trend axis I got expected results for my averages.