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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JorgeAbiad
Helper III
Helper III

Display year only in slicer

Hello PBI Experts,

 

I am using a slicer in my report and I just want to display the year. However, it shows the whole date.

JorgeAbiad_1-1606063437147.png

 

JorgeAbiad_0-1606063403861.png

If I click Date Hierarchy, the control becomes a list or dropdown.

What is the workaround to remove the day and month part in the slicer control.

Thank you very much!

 

Regards,

JorgeAbiad

 

 

2 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@JorgeAbiad 

You need to have a separate column in your table to use on a slicer. Go to your table create a column as follows and assign it to a slicer.


Year = Year(Bonus_2019_Sheet[Fiscal year])

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

amitchandak
Super User
Super User

@JorgeAbiad , Create a fiscal year with help from STARTOFYEAR or ENDOFYEAR

 

End Year = ENDOFYEAR([Date], "3/31") // if year end on 3 /31

Start Year = STARTOFYEAR ([Date], "3/31") // if year end on 3 /31

 

Based on one of these you can get a year

FY Year = Year([Start Year])

 

And use this FY as Slicer with between option.

You can also refer my blog: Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@JorgeAbiad , Create a fiscal year with help from STARTOFYEAR or ENDOFYEAR

 

End Year = ENDOFYEAR([Date], "3/31") // if year end on 3 /31

Start Year = STARTOFYEAR ([Date], "3/31") // if year end on 3 /31

 

Based on one of these you can get a year

FY Year = Year([Start Year])

 

And use this FY as Slicer with between option.

You can also refer my blog: Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Thank you for the solution. It worked,

 

Regards,

JorgeAbiad

Fowmy
Super User
Super User

@JorgeAbiad 

You need to have a separate column in your table to use on a slicer. Go to your table create a column as follows and assign it to a slicer.


Year = Year(Bonus_2019_Sheet[Fiscal year])

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.