Forum Discussion
Need Help on DAX formula..
- 8 years ago
Hi engyin2,
First your error, it is because that the Column Layer is a Text type column. It cannot be used to minus 1 directly. To resolve this error, you just need to change the column typle to whole number.
Then to achieve your requirement, you can try following measure:
Span = CALCULATE ( COUNT ( WD[Layer] ), FILTER ( ALL ( WD ), WD[Layer] = SELECTEDVALUE ( WD[Layer] ) + 1 ) ) / CALCULATE ( COUNT ( WD[Layer] ), FILTER ( WD, WD[Is Manager] = "Yes" ), ALLEXCEPT ( WD, WD[Layer] ) )Thanks,
Xi Jin.
Hi ,
WD id is the employee id. I am using it to count the HC by each department and job layer.
And out of each department, I am identified if particular HC is a manger or not , hence column "is manager" will have "yes" or "no".
I would like to create the measure to see the no. of HC by department reporting to the manager in the previous layer but encountered problem to have the measure written.
Appreciate your help and thanks.
Hi,
Share your source dataset and show the expected result.
- engyin28 years agoFrequent Visitor
Hi Ahish,
Here is the example of the source and the expected result. Thanks.
- Ashish_Mathur8 years agoSuper User
Hi,
I cannot see the column headings - what is O9? N8?
- engyin28 years agoFrequent Visitor