cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tioluwalope
New Member

How to ensure that my apps shows only one line despite having multiple lines in my excel

My data is in excel on onedrive for business. I have a table that has repeated items in a column and when I connect it to power apps the item is repeated. How can I ensure that the The item occurs only once on my app and also sum up the quantities for the item in my app in a single line?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Tioluwalope ,

 

According to your description, I've made a test for your reference:

1\ This is my excel table:

v-xiaochen-msft_0-1614909975513.png

 

// Company column has duplicate values ‘A’,’B’,’C’.

 

2\ Add a gallery control and set its Items property to:

ForAll(Distinct(Table1,Company),{Number:CountRows(Filter(Table1,Company=Result)),Company:Result})

 

3\ The result is as follows:

v-xiaochen-msft_1-1614909975515.png

 

 

Best Regards,

Wearsky

If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @Tioluwalope ,

 

According to your description, I've made a test for your reference:

1\ This is my excel table:

v-xiaochen-msft_0-1614909975513.png

 

// Company column has duplicate values ‘A’,’B’,’C’.

 

2\ Add a gallery control and set its Items property to:

ForAll(Distinct(Table1,Company),{Number:CountRows(Filter(Table1,Company=Result)),Company:Result})

 

3\ The result is as follows:

v-xiaochen-msft_1-1614909975515.png

 

 

Best Regards,

Wearsky

If my post helps, then please consider Accept it as the solution to help others. Thanks.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,393)