Forum Discussion
Anonymous
9 years agoNot applicable
Havinng Clause implement in DAX
select AVG (Salary) ,title from Employee Group By title having AVG(Salary)>25000 this query i would like to implement in DAX measure. not on drag n drop with Average function
- 9 years ago
Hi Anonymous,
Please refer to below formula to create a calculated table:
Filter Table = FILTER ( SUMMARIZE ( Employee, Employee[Title], "Average salary", AVERAGE ( Employee[Salary] ) ), [Average salary] > 25000 )
Regards,
Yuliana Gu
alanhodgson
9 years agoSolution Supplier
Hey Anonymous,
You can create a measure using the following format:
Average Salary = CALCULATE(AVERAGE([Column]), FILTER(ALL('Table'[Column]), [Column] > 25000)
Hope this helps,
Alan
- Anonymous9 years agoNot applicable
this is not working,
it is bringing all the Title even though there is no match.
- v-yulgu-msft9 years agoMicrosoft Employee
Hi Anonymous,
Please refer to below formula to create a calculated table:
Filter Table = FILTER ( SUMMARIZE ( Employee, Employee[Title], "Average salary", AVERAGE ( Employee[Salary] ) ), [Average salary] > 25000 )
Regards,
Yuliana Gu- Anonymous9 years agoNot applicable
Thanks Yulugu,
so can't we write a measure for this instead of calculated table.