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
Microsoft
Microsoft

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
Microsoft
Microsoft

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

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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

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

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (47,013)