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