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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors