Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
i need a formula like this
if an employee has in column Action ONLY "plan"= 1 otherwise 2. see picture below.
Solved! Go to Solution.
hi, @Anonymous
You could also use this formula
Result Column =
IF (
'Table'[Action] = "Plan"
&& CALCULATE (
COUNTA ( 'Table'[Action] ),
FILTER ( 'Table', 'Table'[Name employee] = EARLIER ( 'Table'[Name employee] ) )
) = 1,
1,
2
)
Result:
Best Regards,
Lin
hi, @Anonymous
You could also use this formula
Result Column =
IF (
'Table'[Action] = "Plan"
&& CALCULATE (
COUNTA ( 'Table'[Action] ),
FILTER ( 'Table', 'Table'[Name employee] = EARLIER ( 'Table'[Name employee] ) )
) = 1,
1,
2
)
Result:
Best Regards,
Lin
IF(
CALCULATE(
SELECTEDVALUE([Action]) ,
ALL('Table'),
[Employee name] = EARLIER([Employee name])
) = "Plan" , 1 , 0 )
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 44 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 104 | |
| 104 | |
| 37 | |
| 26 | |
| 26 |