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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mclhone
Frequent Visitor

Auto Filter Chart based on Selected Year on Slicer

Hi,

 

In the below chart, if I select Year (FY) 2020 the chart should only show Jul-19 to Jun-20 and if I select Year (FY) 2021 the chart should only show Jul-20 to Jun-21. All the dates are properly coded base on the FY from Jul-Jun. Currently I have 2 FY's (2020 & 2021) worth of data sets in the source file.

 

Greatly appreciate any tips and recommendations.

 

Many thanks in advance.

 

mclhone_1-1593062704598.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

If you select 2000 and the axis is NOT FILTERED, it means your relationships are non-existent or wrong. Whatever you store in a fact table, you should have a proper calendar and then link the calendar to the fact table on the Date field. No other date characteristics should be stored in a fact table. Then and only then will you get a correct, simple, easy-to-maintain and code-against model.

Best
D

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

If you select 2000 and the axis is NOT FILTERED, it means your relationships are non-existent or wrong. Whatever you store in a fact table, you should have a proper calendar and then link the calendar to the fact table on the Date field. No other date characteristics should be stored in a fact table. Then and only then will you get a correct, simple, easy-to-maintain and code-against model.

Best
D
sturlaws
Resident Rockstar
Resident Rockstar

Hi @mclhone 

 

this should be pretty straight forward, if you have a date table with fiscal year in it. What does your model look like?

 

Cheers,
Sturla

Thanks @sturlaws  - for having a look at my query.

 

Below is my simple data model of the chart, with the Month column linked to the overall Calendar table. I used the Calendar as the x-axis reference.

 

Data Model.JPG

 

Appreciate the feedback.

 

Thanks and regards

 

 

 

 

If you add FY to the date table, and create a slicer on FY, I think you should get what you want

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.