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

Sum functions for filtering

Hello,
I wanted to know, I have a table in Excel,budg.JPG in which there are Company and Currency columns, and there are drop-down menus with similar tabsbudg2.JPG, is it possible to configure a text label so that it displays sum for the selected company and currency?
Thanks in advance,
And best wishes.

1 ACCEPTED SOLUTION

Accepted Solutions
Responsive Resident
Responsive Resident

Hi @Anonymous,

 

This should be simple enough. You will need to utilise a Switch formula to determine which currency column to return but it is simple enough.

 

Set the Text property of the label to:

 

Sum(Filter(ASK; Company = DropdownCompany.Selected.Company);Switch(DropdownCurrency.SelectedText, "USD", USD, "UAH", UAH, "EUR",EUR))

 

The way this works is that you provide the Sum function of your data source and then provide an expression - basically which column you want to evaluate - using the Switch function. The Switch functions works like a nested If but is easier to use with branching results like yours. It also lets you refer directly to column names. 

View solution in original post

2 REPLIES 2
Responsive Resident
Responsive Resident

Hi @Anonymous,

 

This should be simple enough. You will need to utilise a Switch formula to determine which currency column to return but it is simple enough.

 

Set the Text property of the label to:

 

Sum(Filter(ASK; Company = DropdownCompany.Selected.Company);Switch(DropdownCurrency.SelectedText, "USD", USD, "UAH", UAH, "EUR",EUR))

 

The way this works is that you provide the Sum function of your data source and then provide an expression - basically which column you want to evaluate - using the Switch function. The Switch functions works like a nested If but is easier to use with branching results like yours. It also lets you refer directly to column names. 

View solution in original post

Anonymous
Not applicable

Thank you very much for your help))

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (12,941)