Forum Discussion
PriyaJha
Helper I
5 years agoDAX for average with multiple criteria
I have 4 columns in table called Month, Object, status, value. I want the MEASURE average of value only for specific status and for specific year so how i can write the average DAX with multiple crit...
- 5 years ago
Hey,
You can use the below command for the output:
average_ =
CALCULATE(
AVERAGE(your_table_name[value]),
FILTER(
ALL(your_table_name),
your_table_name[month] = Jan
&& your_table_name[status] = "sold"
)
)
NandanHegde
Super User
5 years agoHey,
You can use the below command for the output:
average_ =
CALCULATE(
AVERAGE(your_table_name[value]),
FILTER(
ALL(your_table_name),
your_table_name[month] = Jan
&& your_table_name[status] = "sold"
)
)