Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Reply
Hardik
Continued Contributor
Continued Contributor

Filter out id with missing values

Hi,

 

I need help here to filter out fields with empty values in either of the task category ( i.e Development or Testing).

 

 

filter.png

 

Please follow the link below: 

 

https://drive.google.com/drive/u/1/folders/1JA4gspp2Pjx3hy-PZo1QCh1h_KsfeMJP

 

Thanks,

 

Hardik

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

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] ) )

14.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

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] ) )

14.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.