web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issues on filtering va...
Power Apps
Answered

Issues on filtering values from a table

(0) ShareShare
ReportReport
Posted on by 51

Hello All,

 

I'm strugling to get the values from one variable and use them to return a list filtered according to these values.
I'm trying the following:

 

 

Set(VarRevSel;DataTable1_3.Selected);;
Set(FKVAR;LookUp('B1 - Documentação de Saída';'DOCUMENT CODE'.Value = Label5.Text && REVISION=VarRevSel.REVISION ;'FK CODE'));;
Set(FKVar1;FKVAR.Value);;
ForAll(FKVar1;Collect(FKttl;Filter('A3 - FULL KIT';'FK CODE')))

 

 

As per the variable, it should filter the following 2 values (of six of the list):

Jmnavi_0-1695317174138.png

 

However, it returns the entire list and not the only ones I'm trying to filter.

 

Any guess how to solve.

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Jmnavi ,

     

    Please try below formula:

    Set(VarRevSel;DataTable1_3.Selected);;
    Set(FKVAR;LookUp('B1 - Documentação de Saída';'DOCUMENT CODE'.Value = Label5.Text && REVISION=VarRevSel.REVISION ;'FK CODE'));;
    Collect(FKttl;UnGroup(ForAll(FKVAR;Filter('A3 - FULL KIT';'FK CODE' = ThisRecord.Value));"Value"))

     

    If FK CODE in A3 - FULL KIT table is unique, use below formula:

    Set(VarRevSel;DataTable1_3.Selected);;
    Set(FKVAR;LookUp('B1 - Documentação de Saída';'DOCUMENT CODE'.Value = Label5.Text && REVISION=VarRevSel.REVISION ;'FK CODE'));;
    Collect(FKttl;ForAll(FKVAR;LookUp('A3 - FULL KIT';'FK CODE' = ThisRecord.Value)))

     

    Best regards,

  • Jmnavi Profile Picture
    51 on at

    Hello @v-jefferni 

     

    Thank you!!

    It works.

    Alternativelly I found out another sollution which is apparently working without ForAll. I'd like to share with you. Please see below:

    Collect(FKttl1;Filter(FKttl;'FK CODE' in FKVar1))

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard