cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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
yashag2255
Dual Super User II
Dual Super User II

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!

Anonymous
Not applicable

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

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

Anonymous
Not applicable

Thank You a lot!! ))

Best regards.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,728)