cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mssss
Helper V
Helper V

Filter my lookup columns with Isblank

Hello, I am useing cds and I would like to know how to filter my lookup columns.

 

I would like to filter like this.

 

Filter(table, IsBlank(MyLookUpColumn) )

but not working😥

 

1 ACCEPTED SOLUTION

Accepted Solutions

@mssss ,

You left off the Filter and the Blank test at the end - I tested this here and you also need IsBlank.

Be also aware this may not work properly on large data sets.

Filter(
   AddColumns(
      table, 
      "MyLU",
      customer.Value
   ),
   IsBlank(MyLU)
)

Also please have a read of my blog on data structures and ask whether you really need that lookup column.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @mssss ,

You cannot filter directly on Lookup columns - try this

Filter(
   AddColumns(
      table, 
      "MyLU",
      MyLookUpColumn.Value
   ),
   MyLU = Blank()
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz 

 

Thank you for your help!

 

I've tried but Add Columns part did not work.😅

Can it be used to the gallery?

 

@mssss ,

I thought that was what you are using it for - also how did it not work (error/not result you expected).

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz 

 

Thank you for your help.

First I have try just "AddColumns" but I got a error message.

mssss_1-1612611158194.png

When I set a only this table name, error do not show.

mssss_3-1612611510862.png

Am I doing correct?

 

mssss_4-1612611642405.png

 

@mssss ,

You left off the Filter and the Blank test at the end - I tested this here and you also need IsBlank.

Be also aware this may not work properly on large data sets.

Filter(
   AddColumns(
      table, 
      "MyLU",
      customer.Value
   ),
   IsBlank(MyLU)
)

Also please have a read of my blog on data structures and ask whether you really need that lookup column.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,941)