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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.