Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi,
I need help here to filter out fields with empty values in either of the task category ( i.e Development or Testing).
Please follow the link below:
https://drive.google.com/drive/u/1/folders/1JA4gspp2Pjx3hy-PZo1QCh1h_KsfeMJP
Thanks,
Hardik
Solved! Go to Solution.
HI @Hardik,
You can use below measure to instead task_id column to achieve filter effect.
Result = VAR _distinct = CALCULATE ( DISTINCTCOUNT ( Tasks[Task_Category] ), FILTER ( ALLSELECTED ( TaskAssignment ), [Emp_ID] IN VALUES ( Employee[Emp_ID] ) && [Date] = MAX ( TaskAssignment[Date] ) ) ) VAR category_count = COUNTROWS ( DISTINCT ( ALLSELECTED ( Tasks[Task_Category] ) ) ) RETURN IF ( _distinct = category_count, COUNT ( TaskAssignment[Task_ID] ) )
Regards,
Xiaoxin Sheng
HI @Hardik,
You can use below measure to instead task_id column to achieve filter effect.
Result = VAR _distinct = CALCULATE ( DISTINCTCOUNT ( Tasks[Task_Category] ), FILTER ( ALLSELECTED ( TaskAssignment ), [Emp_ID] IN VALUES ( Employee[Emp_ID] ) && [Date] = MAX ( TaskAssignment[Date] ) ) ) VAR category_count = COUNTROWS ( DISTINCT ( ALLSELECTED ( Tasks[Task_Category] ) ) ) RETURN IF ( _distinct = category_count, COUNT ( TaskAssignment[Task_ID] ) )
Regards,
Xiaoxin Sheng
User | Count |
---|---|
120 | |
95 | |
88 | |
73 | |
66 |
User | Count |
---|---|
138 | |
112 | |
110 | |
98 | |
94 |