Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I have to implement one expression where only those EMP should be counted who have completed all their assigned trainings, which means CompletedTopics/TotalTopics = 1 or TotalTopics-CompletedTopics = 0.
Now, i will tkae Count of EMP according to the condition put up in set analysis.
Also i want to aggregate the values with EMP as different Employees have different assigned number of Topics.
Here, my Dimension is Team.
So, the final count will represent the number of employees in that team who have completed all their asigned topics.
Thanks in advance.
REmoving the sum solves my issue:
count({<EMP={"=(CompletedTopics)=(TotalTopics)"}>}distinct EMP)
Thanks for the help.
Perhaps like this: count({<EMP={"=sum(CompletedTopics)=sum(TotalTopics)"}>}distinct EMP)
Thanks for the reply Gysbert.
But the expression is not giving correct result in Total.
Please post an example that demonstrates the issue.
REmoving the sum solves my issue:
count({<EMP={"=(CompletedTopics)=(TotalTopics)"}>}distinct EMP)
Thanks for the help.
You can further improve this by carrying out this calculation in the script
If(CompletedTopics = TotalTopics, 1, 0) as TopicFlag
and then this:
Count({<TopicFlag = {1}>} DISTINCT EMP)
Yes, exactly i thought abou this approach also if couldn't get it rohgt on Sheet level.
Thanks for the input Sunny.