cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PorterHaus Frequent Visitor
Frequent Visitor

Filter data but not X Axis

Currently when I filter by date it filters the X-Axis as well but I would like to keep all of the months for the year and just filter the data instead.

 

 Full year:

 

 

Timeline gets filtered as well:

 

If I filtered back to February then I would expect march and april to be empty but still have the rest of the months.

1 ACCEPTED SOLUTION

Accepted Solutions
PorterHaus Frequent Visitor
Frequent Visitor

Re: Filter data but not X Axis

What I did to fix this was I created a new table with only the month name and month number (so I can sort properly) and then I created a relationship between my new table and my DimDate table. Then I replaced my axis with the month name from the new table.

 

New Table:

tbl1.PNG

Created relationship with DimDate table:

rel1.PNG

 

Now it works as expected!

Full year:

tk1.PNG

Filtered:

tk2.PNG

 

Note: I also had to check "Show items with no data" as well as filter out Months that are blank because it created a blank month for some reason.

nodata.PNGnot.PNG

View solution in original post

1 REPLY 1
PorterHaus Frequent Visitor
Frequent Visitor

Re: Filter data but not X Axis

What I did to fix this was I created a new table with only the month name and month number (so I can sort properly) and then I created a relationship between my new table and my DimDate table. Then I replaced my axis with the month name from the new table.

 

New Table:

tbl1.PNG

Created relationship with DimDate table:

rel1.PNG

 

Now it works as expected!

Full year:

tk1.PNG

Filtered:

tk2.PNG

 

Note: I also had to check "Show items with no data" as well as filter out Months that are blank because it created a blank month for some reason.

nodata.PNGnot.PNG

View solution in original post

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors