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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Saloni
Helper I
Helper I

How to filter area charts

I want to create an area chart for monthly data of 3 years. I have a list of 10 companies. How can I filter the companies I want to see on the chart? X-axis contains months and Y-axix contains the values.

 

Appreciate your help!

1 ACCEPTED SOLUTION

A quick way to achive this is to use the Unpivot feature in the Query Editor.

 

So before :

 

unpivot.png

 

After :

 

unpivotb.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

5 REPLIES 5
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Saloni

 

If you drag the column that contains the company name to the visual (perhaps the Legend box) you will see all your companies, but you will also be able to filter from there as well.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

data.PNG

 

Data looks something like this. How can I apply a filter to the companies I want to see in the area chart?

I'd suggest pivoting your data so it's more in this format

 

Date        , Company , Value
2/29/12   , A              , 1
2/29/12   , B              , 1.1
2/29/12   , C              , 1.2
2/29/12   , D              , 1.1
2/29/12   , E              , 1.1
2/30/12   , A              , 2

etc...

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

A quick way to achive this is to use the Unpivot feature in the Query Editor.

 

So before :

 

unpivot.png

 

After :

 

unpivotb.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

The list of companies is not a single column. 10 columns contain 10 different companies! How can I apply a filter to them?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.