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

Announcements

News and Announcements icon
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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard