cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

SUM And filter for barchart

I want to calculate the SUM estimation of work hour, filter by Month and customername based of Gallery to a BarChart

so far, I have this for legends and its working, ( The dropdown with Proper(Calendar.MonthsLong()) )
Distinct(Filter(Gallery4.AllItems, Periode = Dropdown2.Selected.Value), CustomerName)

 

 

BUT for the graph this dosen't work !
Sum(Filter(Gallery4.AllItems, Periode = Dropdown2.Selected.Value), ProjectTime)

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @KhanhTNguyen ,

 

Could you show me the structure of your data source ?

What kind of chart do you use ?

Which property is the formula set to ?

 

I assume that you use Line chart control.

Do you want to show the Sum estimation of work hour in Line Chart ?

 

I have made a test.

I create a sharepoint list named test7. Periode column is single text type . CustomerName column is a single text type. ProjectTime is number type.

9.PNG10.PNG

Set Items property of LineChart1 to :

{Title :"name1",value:Sum(Filter(Gallery1.AllItems,Periode =Dropdown1.Selected.Value),ProjectTime)}

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi @KhanhTNguyen ,

 

Could you show me the structure of your data source ?

What kind of chart do you use ?

Which property is the formula set to ?

 

I assume that you use Line chart control.

Do you want to show the Sum estimation of work hour in Line Chart ?

 

I have made a test.

I create a sharepoint list named test7. Periode column is single text type . CustomerName column is a single text type. ProjectTime is number type.

9.PNG10.PNG

Set Items property of LineChart1 to :

{Title :"name1",value:Sum(Filter(Gallery1.AllItems,Periode =Dropdown1.Selected.Value),ProjectTime)}

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hey Eason thanks you for helping me out, but my concern lie in the customername field in gallery due to fact that a customer"customername" can have more than 1 project.

 

I need to sum up the projectime based on periode and customername,

 

Best regard, 

Khanh

 

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 (5,024)