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
beardsleys
Regular Visitor

Issue with Date Slicer

Hope someone can help.

 

I am pulling data from SQL and I need to convert the date field to '101' in order to pull the specific (and distinct) records I need to import into BI.  However when I convert the date to format 101, the Timeline 1.10.3 slicer will no longer group the dates into Year, Quarter, Month, Week, Day as it was doing before I converted the date. 

 

Does anyone know of a way I can make the slicer work properly or know of a better date slicer I can use?

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @beardsleys,

 

How did you convert date to "101" format? Via SQL query before loading or via choosing the data type and format on the toolbar in desktop?

 

After loading data into desktop, please check its data type.

1.PNG

 

Also, please check the feild format you added to slicer.

2.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @beardsleys,

 

How did you convert date to "101" format? Via SQL query before loading or via choosing the data type and format on the toolbar in desktop?

 

After loading data into desktop, please check its data type.

1.PNG

 

Also, please check the feild format you added to slicer.

2.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I had to do it in the SQL query before loading it in, in order to obtain the specific data I wanted to load in Power BI. 

 

I was less concerned about the format and more concern about obtaining the correct data.  The DB I am loading in can create multiple records for the same one that are only seconds apart, so in order to eliminate those duplicates I had to convert the date field to 101.

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.