Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello,
I have a table that includes the Fiscal Year (FY) field. I want to create a slicer such that when I select FY25, the data and visuals will display both FY24 and FY25. Or select FY24, display FY24 and FY23, and similarly for other years.
Data is here: (I can't attract files or links, just can capture them)
As a newcomer to Power BI, I would greatly appreciate your assistance. Thank you!
Solved! Go to Solution.
Hi @Amyries
You will need a disconnected table (without relationship) as using column from a related table will show just what's been selected and then a measure referencing that table/column to be used as a visual filter
FY Filter =
VAR SelectedFY =
MAX ( FY[FY Number] )
VAR _FY = {
"FY" & SelectedFY - 1,
"FY" & SelectedFY
}
RETURN
CALCULATE (
COUNTROWS ( 'Date' ),
KEEPFILTERS ( TREATAS ( _FY, 'Date'[Fiscal Year] ) )
)
Please see the attached sample pbix.
Hi @Amyries
You will need a disconnected table (without relationship) as using column from a related table will show just what's been selected and then a measure referencing that table/column to be used as a visual filter
FY Filter =
VAR SelectedFY =
MAX ( FY[FY Number] )
VAR _FY = {
"FY" & SelectedFY - 1,
"FY" & SelectedFY
}
RETURN
CALCULATE (
COUNTROWS ( 'Date' ),
KEEPFILTERS ( TREATAS ( _FY, 'Date'[Fiscal Year] ) )
)
Please see the attached sample pbix.
Thank you!
Hi @Amyries ,
If danextian's reply can help you, please remember to accept his reply as a solution to help the other members find it more quickly. Thank you!
Best Regards,
Dino Tao
Please accept my post as the solution.
Thank you, but I Select FY24 as the visual just show data for FY23
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 39 | |
| 23 | |
| 21 |
| User | Count |
|---|---|
| 144 | |
| 106 | |
| 63 | |
| 38 | |
| 31 |