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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to make this slice to list in Year not actual date

How to make this slice to list in Year not actual date (used to be 2015, 2016, 2017) but suddently changed to detailed date.  this table don't have any relationship with other tables. 

 

and it's date field. 

 

CRM.PNG

 

1 ACCEPTED SOLUTION
pxg08680
Resolver III
Resolver III

@Anonymous

You can do it many ways, one of the ways is

 

In edit query select the date field and duplicate it, right click and select Transform to YEAR. Rename it to your requirement.

Use this new column in the slicer. Doing this way you don't disturb your existing date field.

 

You can do it another way, in the data view select the date field and in modeling tab, change the date type to YYYY. this makes your entire date field to YYYY. If you are using this date field in any other columns or measures that gets changed too.

 

My suggestion would be the first one.

 

 

 

Hope this helps.

View solution in original post

1 REPLY 1
pxg08680
Resolver III
Resolver III

@Anonymous

You can do it many ways, one of the ways is

 

In edit query select the date field and duplicate it, right click and select Transform to YEAR. Rename it to your requirement.

Use this new column in the slicer. Doing this way you don't disturb your existing date field.

 

You can do it another way, in the data view select the date field and in modeling tab, change the date type to YYYY. this makes your entire date field to YYYY. If you are using this date field in any other columns or measures that gets changed too.

 

My suggestion would be the first one.

 

 

 

Hope this helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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