Forum Discussion
Anonymous
2 years agoNot applicable
DAX Calculation Help! +Tutor needed.
Hi Community, You guys have been my savior when I need help, so I am back here to get some help! I work for a hospitality company and currently in the HR department. I am trying to create Turnover...
- Anonymous2 years ago
Hi Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
Avg HC = var _a=CALCULATE(SUM('All Master Team Detail Data'[Headcount]),FILTER(ALL('All Master Team Detail Data'),'All Master Team Detail Data'[properties]=MAX('All Master Team Detail Data'[properties]))) var _b=COUNTROWS(FILTER(ALL('All Master Team Detail Data'),'All Master Team Detail Data'[properties]=MAX('All Master Team Detail Data'[properties]))) return DIVIDE(_a,_b)(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
2 years agoSuper User
Hi,
Share some data to work with and show the expected result.