问题
I have two columns with OpenTasks and ClosedTasks, both have values either 0 or 1.
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?
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.
回答1:
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.
回答2:
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
回答3:
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.
来源:https://stackoverflow.com/questions/48709426/average-gives-incorrect-number-power-bi-desktop