web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Displaying series in a...
Power Apps
Unanswered

Displaying series in a Line Chart/Adding series to a Line Chart (Filtering a Line Chart)

(0) ShareShare
ReportReport
Posted on by 36

Hi,

 

I've got a ListBox control (ListBoxCategory) and a drop-down control (DropdownEmployee). I would like my Line Cart to display information based on the employee you select in the drop-down list, and the categories you select in the list box.

 

  • The ListBoxCategory uses a data source (CategoryTable) which contains a 'CategoryID' and 'Category' column.

Data source: CategoryTableData source: CategoryTable

The ListBoxCategory's Items is set to 'CategoryTable', and the Value is set to 'Category' - it displays 'Lunch', 'Meetings', 'Work', 'Travel', and 'Breaks' (the values in the Category column)

 

 

  • The DropdownEmployee uses a data source (EmployeeTable) which contains an 'EmployeeID' and 'Employee' column - it displays the names of the employees in the Employee column.

Data source: EmployeeTableData source: EmployeeTable

The DropdownEmployee's Items is set to 'EmployeeTable', and the Value is set to 'Employee'. 

 

The line chart's data source (EmployeeDetails) contains a 'Category', 'HoursSpent', 'Employee', and 'MonthYear' column. The MonthYear column contains dates formatted as text:

 

Data source: EmployeeDetailsData source: EmployeeDetails

The line chart should display data from the 'HoursSpent' column that corresponds to the selected employee (DropdownEmployee) and the selected category(s) (ListBoxCategory). For example, if you select 'Lunch' and 'Travel' in the ListBoxCategory, it should display the corresponding 'HoursSpent' value (Y-axis) and the MonthYear (X-axis) so that you can see one line that shows which months the HoursSpent for Lunch and another line that shows the HoursSpent for Travel.

 

Right now I have it set to: 

Filter(EmployeeDetails,Employee=DropdownEmployee.Selected.Employee,CategoryValue=ListBoxCategory.SelectedItems.Category)

 

but this is not working.

 

Please help.

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Adding @FilipK to assist with this question 🙂 @Anonymous

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard