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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Prima_
Helper II
Helper II

Avoid duplicates in date slicer

Hi,

 

How to have distinct values in the date slicer?

 

Prima__1-1674204852048.png

 

Thanks.

 

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Prima_ , Create a new column; format will not do in this case 

 

month Year = format([Date], "mmm YYYY")

View solution in original post

Thanks Rico Zhou, but, that's not what I want.  I tried creating a new column as suggested by amitchandak, but, it worked only after changing the format as shown below. Thanke amitchandak.

Prima__1-1674706556084.png

 

 

Prima__0-1674706523351.png

 

View solution in original post

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @Prima_ ,

 

Your issue should caused by the custom format of your [Date] column. Format "MMM YYYY" will cause your date value return month short name + year like "Jan 2022'.
So whether your value is 2022/01/01 or 2022/01/02, they will return "Jan 2022".

RicoZhou_0-1674463545999.png
If you want to avoid duplicates as above, please add day in your format. Format like "DD MMM YYYY".

RicoZhou_1-1674464189298.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Prima_ , Create a new column; format will not do in this case 

 

month Year = format([Date], "mmm YYYY")

Thanks Rico Zhou, but, that's not what I want.  I tried creating a new column as suggested by amitchandak, but, it worked only after changing the format as shown below. Thanke amitchandak.

Prima__1-1674706556084.png

 

 

Prima__0-1674706523351.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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