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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
joshtech
Regular Visitor

Unable to change the date from day to year in POWERBI slicer Slicer in POWER BI.

Hi Community,

 

I'm trying to create a date slicer base on Leila Gharani tutorials, not sure if its due to Power BI updates changes.

 

Her screen is like this.
joshtech_1-1698497337230.png

 

 

My screen is like this below. I can't find any settings to change the date settings. 

joshtech_0-1698497225612.png

 

Can advise how do I change the settings?

 

Thank you!

3 REPLIES 3
Idrissshatila
Super User
Super User

Hello @joshtech ,

 

you can create a year column based on the date column, 

 

create a new column and paste the following measure

 

Year = YEAR('YourTableName'[date])

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Dangar332
Super User
Super User

Hi, @joshtech 

@joshtech 

 

check your data type of date column 
if it TEXT  type then it give likw below(as your problem with date column)

 

Dangar332_0-1698501308811.png

 

 

so change date column data type to date/time as below figure 

and you get what you want.

Dangar332_0-1698507720053.png

 

changing data type from text to date/time it give  Date hierarchy like below

Dangar332_1-1698507795428.png

 

 

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos.

 

calerof
Impactful Individual
Impactful Individual

@joshtech,

She shows a Date hierarchy, that you don't have.

F

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.