Forum Discussion
aabati68
2 years agoFrequent Visitor
Please help with CALCULATE and FILTER dax function
I know the way I am trying to solve this is not elegant at all, but I do have a simple table called "HR Data" and a measure define like this: Headcount Employees = CALCULATE(DISTINCTCOUNT('HR Data'...
- 2 years ago
Heacount Employees One Year Before = CALCULATE(sum('HR Data'[Headcount Employees]),OFFSET(-4,allselected('HR Data'),MATCHBY('HR Data'[Index])))
aabati68
2 years agoFrequent Visitor
Thank you for the reply. I totally agree this should the right way of solving this, however I just need to build a quick proof of concept plus I am using bespoken quarters so a bit tricky to solve in that way.
I wouldn't suggest the solution I am trying to implement to anyone, but is there a simple way to fix my DAX instead ?
Thanks
A.