Forum Discussion
Anonymous
3 years agoNot applicable
Average is not working
Hi, I have the numbers of customers of two months and want to show the average. This visual is the sum of customers with code: customer[count_no] = IF(ISBLANK(customer[name]),BLANK(),...
- 3 years ago
hi Anonymous
try like:
count_AVG =
VAR _AverageTable =
ADDCOLUMNS (
VALUES ( 'Date'[Date].[Month] ),
"count",CALCULATE(COUNT ( customer[count_no] ))
RETURN
AVERAGEX( _AverageTable, [count] )
andhiii079845
Solution Sage
3 years agoWhy you add VALUES ( 'Date'[Date].[Month] ) in your DAX? Date and customer table have a relationship?
Anonymous
3 years agoNot applicable
Hi,
yes, they have. table "date" is my calender table.
I used VALUES, because it does work for another table. Happy to know how it could work with something else