Forum Discussion
Need help to sum depending on mutliple conditons.
The first cust column help to define current dept .. if true or false
then there is a realtionship between teammaster and EmployeeYTD ,So when i select team 1 from the slicer then the count is always 1 for that team .. .. .
| TEAM ID | DEPT |
| 1 | ABC |
| 2 | BBC |
So I tried something like below .. .. and got the current dept amount correctly .. but when i selected the second team I should get the remaining amount ..Since the first count condition is satisfied its is not going to else if i select the old team.
I am unable to understand your full requirements. Let me know what output are you expecting. TeamID comes from TeamMaster Table.
Attached screenshot of the output i get based on my TeamID Slicer.
- rajbi20206 years agoFrequent Visitor
If the employe doesnt change the team then we should get the total amount ignoring the dept he worked .
So for employee 1 amount is 36 -team 1
So for employee 2 - If we select team 1 (old team) then we need to get the sum(all dept except BBC which is current)
if we select team 2 then we need to get only amount related to BBC ie 30 ) below are the table output
Sorry for confusing .
EMPLOYEE Amount 1 36 2 36 (EXCEPT BBC DEPT) If selected 22
Employee Amount 2 30(only BBC)