cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Sum

Hello to all,


I have a table in Excel, attached to PowerAppsебалайка.JPG, can I somehow sort or search the table, followed by summing the values in a certain column? For example, if I enter the name of the company in the search field, then the table displays data for this company, and Amounts were displayed in the fields under it in the total cells?

Best wishes

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Sum

Hey @Anonymous 

 

In case you want to fetch the respectives values, you can use the expression as:

UAH Label: Text -> Sum(Search(DataSourceName, TextInput1.Text,"Company"), Value(UAH))
USD Label: Text -> Sum(Search(DataSourceName, TextInput1.Text,"Company"), Value(USD))
EUR Label: Text -> Sum(Search(DataSourceName, TextInput1.Text,"Company"), Value(EUR))


Here, you need to replace DataSourceName with the name used in datatable.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

Re: Sum

Hi @Anonymous 

 

Can you share more details about the datasource and the data that you are trying to get into the total column?

If you want to implement the Search functionality, you can create a text box(TextInput1) and update the Items property as:

Search(DataSourceName, TextInput1.Text, "Column1","Column2")

In case you want to get sum based on search items:

Sum(Search(DataSourceName, TextInput1.Text, "Column1"),"ColumnName")

If this differs, please share more details so that we might be able to help you better.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Anonymous
Not applicable

Re: Sum

Capture.JPG
Thank you for your advice, the second option is more suitable, I have a searchboxdetail ... a company column, and a currency column, and labelUAH,etc,I would like, for example, when entering the company name in the search bar, the amounts for this company are displayed in total cells

Highlighted
Dual Super User III
Dual Super User III

Re: Sum

Hey @Anonymous 

 

In case you want to fetch the respectives values, you can use the expression as:

UAH Label: Text -> Sum(Search(DataSourceName, TextInput1.Text,"Company"), Value(UAH))
USD Label: Text -> Sum(Search(DataSourceName, TextInput1.Text,"Company"), Value(USD))
EUR Label: Text -> Sum(Search(DataSourceName, TextInput1.Text,"Company"), Value(EUR))


Here, you need to replace DataSourceName with the name used in datatable.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Sum

Thank You a lot!! ))

Best regards.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

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