I have scenario where I need to calculate the number of employees who are in new role in Last 12 months and excluding whos job role date in last 12 months.
I have written a DAX code where am getting the Total correct - 116 for 12 Months, but when I see that inside the table the subtotal are summing to 97 which is incorrect, I have kept relative date filter in filter panel just to see the last 12 months…
Request you to please refer my first post and PBIX file again I have clearly mentioned my scenario am looking at employees who are in new role in last 12 months and who’s job role date not falling in last 12 months.
I have already got the right solution as 116 as Total but when am seeing that in table the values are not summing to 116 but they are summing to 97 this is my problem, I want to understand what mistake I have done in the DAX code I have written.
Hi @Dharma - Rewent through your problem. The Total count will not match with the table rows individual count. This is because of change in the evaluation context.
While counting values for individual row, Evaluation context is the “New Role Entry Date” and corresponding “Join Date” and based on this the output is calculated while during Total there is no “New Role Entry Date” or “Joining Date” context and Power BI takes the maximum and minimum values available and calculate based on that.
This is also clearly explained in Blog post by Greg and shared by EDNA team Fix Incorrect Totals