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
Anonymous
9 years agoNot applicable
this is not working,
it is bringing all the Title even though there is no match.
v-yulgu-msft
9 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.
- Anonymous9 years agoNot applicable
EVALUATE Filter Table = FILTER ( SUMMARIZE ( Employee, Employee[Title], "Average salary", AVERAGE ( Employee[Salary] ) ), [Average salary] > 25000 )ORDER BY "Average Salary"
Can i make use of ORDER BY for this in POWER BI its is not accepting syntax