cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
1000ghz
Frequent Visitor

Filter the differences between 2 lists

Dear all,

i have 2 lists, one for "Physical Inventory" and an other one for "Invoices Inventory"

 

01.JPG

My wish is to have a gallery with all Fruits and Q.ty, filtered by Store from the "Invoices Inventory" which are not in the "Phisical Inventory" like the example below:

 

02.JPG

I will select the Store with a dropdown menu.

 

Thank you in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @1000ghz :

I've made a test for your reference:

1\My data source:

 

ClearCollect(
'Physical Inventory',
{Stroe:"A",Fruit:"Orange",'Q.ty':10},
{Stroe:"A",Fruit:"Apple",'Q.ty':15},
{Stroe:"A",Fruit:"Banana",'Q.ty':10},
{Stroe:"A",Fruit:"Cherry",'Q.ty':5},
{Stroe:"B",Fruit:"Appple",'Q.ty':20},
{Stroe:"B",Fruit:"Coconut",'Q.ty':8},
{Stroe:"C",Fruit:"Orange",'Q.ty':12},
{Stroe:"C",Fruit:"Cherry",'Q.ty':10}
);
ClearCollect(
'Invoices Inventory',
{Stroe:"A",Fruit:"Orange",'Q.ty':10},
{Stroe:"A",Fruit:"Apple",'Q.ty':15},
{Stroe:"A",Fruit:"Banana",'Q.ty':15},
{Stroe:"B",Fruit:"Appple",'Q.ty':20},
{Stroe:"B",Fruit:"Coconut",'Q.ty':10},
{Stroe:"B",Fruit:"Orange",'Q.ty':5},
{Stroe:"B",Fruit:"Melon",'Q.ty':2},
{Stroe:"C",Fruit:"Apple",'Q.ty':5},
{Stroe:"C",Fruit:"Orange",'Q.ty':12}
)

 

2\Add a drop down control(Dropdown3) and set it's items property to:

 

["A","B","C"]

 

3\Use this formula to get the result:

 

Filter(
    'Invoices Inventory',
    !(Fruit in Filter(
        'Physical Inventory',
        'Physical Inventory'[@Stroe] = Dropdown3.SelectedText.Value
    ).Fruit) && 'Invoices Inventory'[@Stroe] = Dropdown3.SelectedText.Value
)

28.gif

 

Best Regards,

Bof

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @1000ghz :

I've made a test for your reference:

1\My data source:

 

ClearCollect(
'Physical Inventory',
{Stroe:"A",Fruit:"Orange",'Q.ty':10},
{Stroe:"A",Fruit:"Apple",'Q.ty':15},
{Stroe:"A",Fruit:"Banana",'Q.ty':10},
{Stroe:"A",Fruit:"Cherry",'Q.ty':5},
{Stroe:"B",Fruit:"Appple",'Q.ty':20},
{Stroe:"B",Fruit:"Coconut",'Q.ty':8},
{Stroe:"C",Fruit:"Orange",'Q.ty':12},
{Stroe:"C",Fruit:"Cherry",'Q.ty':10}
);
ClearCollect(
'Invoices Inventory',
{Stroe:"A",Fruit:"Orange",'Q.ty':10},
{Stroe:"A",Fruit:"Apple",'Q.ty':15},
{Stroe:"A",Fruit:"Banana",'Q.ty':15},
{Stroe:"B",Fruit:"Appple",'Q.ty':20},
{Stroe:"B",Fruit:"Coconut",'Q.ty':10},
{Stroe:"B",Fruit:"Orange",'Q.ty':5},
{Stroe:"B",Fruit:"Melon",'Q.ty':2},
{Stroe:"C",Fruit:"Apple",'Q.ty':5},
{Stroe:"C",Fruit:"Orange",'Q.ty':12}
)

 

2\Add a drop down control(Dropdown3) and set it's items property to:

 

["A","B","C"]

 

3\Use this formula to get the result:

 

Filter(
    'Invoices Inventory',
    !(Fruit in Filter(
        'Physical Inventory',
        'Physical Inventory'[@Stroe] = Dropdown3.SelectedText.Value
    ).Fruit) && 'Invoices Inventory'[@Stroe] = Dropdown3.SelectedText.Value
)

28.gif

 

Best Regards,

Bof

 

View solution in original post

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (10,159)