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😥
Solved! Go to Solution.
@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.
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.
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.
Thank you for your help.
First I have try just "AddColumns" but I got a error message.
When I set a only this table name, error do not show.
Am I doing correct?
@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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
183 | |
45 | |
45 | |
34 | |
34 |
User | Count |
---|---|
257 | |
82 | |
78 | |
67 | |
65 |