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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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