cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EdevaldoJeronim
Resolver I
Resolver I

How request Table01 Not In Table02

I just need to request all TblMenuAplic.IdAplic Not In TblGrupoAplic.IdAplic for the TblGrupoAplic.IdGrupo = 1.

The table Example below:

EdevaldoJeronim_1-1614517723575.png

I use the code below but the result should be TblMenuAplic.IdAplic 2 and 5 but the result very diferent.

Clear(MyTblTemp);;
ForAll(
          TblMenuAplic;
          Collect(
                     MyTblTemp;
                     Filter(
                             TblGrupoAplic;
                             !(IdAplic in Text(TblMenuAplic[@IdAplic]));IdGrupo = 1
                     )
            )

)

1 ACCEPTED SOLUTION

Accepted Solutions
EdevaldoJeronim
Resolver I
Resolver I

All

I solved this problem using the code below, thank you.

 

Clear(MyTblTemp);;
Clear(MyTblTemp1);;
ClearCollect(MyTblTemp;Filter(TblMenuAplic;IdAplic > 0));;
ClearCollect(MyTblTemp1;Filter(TblGrupoAplic;IdGrupo = CbnGrupo.Selected.IdGrupo));;
ForAll(
MyTblTemp1;
RemoveIf(MyTblTemp;IdAplic = MyTblTemp1[@IdAplic])
)

View solution in original post

2 REPLIES 2
EdevaldoJeronim
Resolver I
Resolver I

All

I solved this problem using the code below, thank you.

 

Clear(MyTblTemp);;
Clear(MyTblTemp1);;
ClearCollect(MyTblTemp;Filter(TblMenuAplic;IdAplic > 0));;
ClearCollect(MyTblTemp1;Filter(TblGrupoAplic;IdGrupo = CbnGrupo.Selected.IdGrupo));;
ForAll(
MyTblTemp1;
RemoveIf(MyTblTemp;IdAplic = MyTblTemp1[@IdAplic])
)

View solution in original post

Hi,

 

Thanks for your follow up post! I am glad that you were able to get this figured out. Hopefully this will prove to be useful to future communities users.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (59,981)