cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sandie
Helper III
Helper III

Filter Table where Look Up Column Blank

Table "Requests" and a Lookup Column "Assigned" (looks up users).  Unassigned = no user selected in lookup column

I can accurately count how many unassigned requests I have using:

CountIf(
    Requests,
    IsBlank(Assigned)
)

  
However, if I try to filter a Data Tables "Items" field I don't get any items in my table:

Filter(
    Requests,
    IsBlank(Assigned)
)

 

What am I overlooking?

 

Environment: Teams: Power Apps & Dataverse

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

@Sandie 

Trying again

Filter(
        AddColumns(
                    Requests,"assgnd",Assigned.XXXS //use intellisense to identify value
         ),IsBlank(
                    assgnd
           )
 )

View solution in original post

7 REPLIES 7
ganeshsanap
Super User
Super User

@Sandie Try using these:

 

Filter(
    Requests,
    Assigned = ""
)

 

OR

 

Filter(
    Requests,
    Assigned = Blank()
)

 

 References:

  1. Filtered Lookup Column - filtered value will not be saved 
  2. LookUp Field Blank Check 

Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

Thanks for your reply @ganeshsanap, unfortunately neither works

 

Assigned = "" gives an error indicator under the equals sign (Invalid argument type)
Assigned = Blank() does not error but does not return any items.

EDIT: Both actually give the same error!

I'll keep reading through the other posts you linked to see if I can find something more.

Drrickryp
Super User II
Super User II

@Sandie 

Try

CountIf(
    Requests,
    IsBlank(Assigned.Value)
)

Thanks @Drrickryp unfortunately that doesn't work either.  "Assigned" does not have a "Value" property.

One of the confusing things about my situation is that the CountIf function I provided works as expected, but the same expression in the Filter function does not.

Sandie
Helper III
Helper III

Bump

BlessedCobba
Resolver I
Resolver I

Hi Sandie,

have you tried pulling the data into a collection and running the same filters over the collection to populate the table?
i know its a workaround but my help with troubleshooting the issue directly for the source

Drrickryp
Super User II
Super User II

@Sandie 

Trying again

Filter(
        AddColumns(
                    Requests,"assgnd",Assigned.XXXS //use intellisense to identify value
         ),IsBlank(
                    assgnd
           )
 )

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,830)