Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kelvin04_Zou
Regular Visitor

how to add 'year' drop down filter in line chart

Hi,

 

I'm fairly newbie in Power bi, I have a table like this, 

Kelvin04_Zou_1-1671627891751.png

and I just want to add a drop down list in the line chart to filter the data for each year, how to achieve this? can anybody advise, thanks

Kelvin04_Zou_2-1671628022082.png

 

 

 

 

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello,

 

you could add a slicer having the years

Idrissshatila_0-1671628670907.png

Idrissshatila_1-1671628710457.png

 and to make it a drop down list you do like in the screenshot

Idrissshatila_2-1671628756170.png

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thank you for the prompt answer. I tried slicer and it works, just one more silly question, 

 

I change the slicer background color to black and the font color is white, but the color of the selected icon didn't change, I want it to be white too, how to achieve this? 

Kelvin04_Zou_0-1671721222128.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.