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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Atlan
Frequent Visitor

Problem with two Date columns

Hi,

I use a query that produce a column with different time values (03.01.2022 09:48:44). In Power Bi I use the Preselected Slicer with a Date Table. In the Datetable all times 00:00:00. So I think not all rows match so my values are wrong. In Power BI i changed the format to only date without time for both columns. But only rows with 00:00:00 time show in the visuals. What can I do?

 

Thanks.

Regards

Marcel

1 ACCEPTED SOLUTION
sayaliredij
Super User
Super User

Hello @Atlan 

 

as i can not see all the settings and data completely, i have tried to prepare sample file using same fields like you (only necessary one) 

DateFilters.pbix

please download this and verify all the settings. 

let me know if it helps. 

 

Thanks,

Sayali





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

10 REPLIES 10
sayaliredij
Super User
Super User

Hello @Atlan 

 

as i can not see all the settings and data completely, i have tried to prepare sample file using same fields like you (only necessary one) 

DateFilters.pbix

please download this and verify all the settings. 

let me know if it helps. 

 

Thanks,

Sayali





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @sayaliredij ,

many thanks for your help with my problem. I tried the slicer with your Data. With this Data works the Preselect Slicer. So I watched again over my configuartion. The Date column had still the Time so the most values couldnt match and I got wrong values. I tried it with this:

newdate = FORMAT(Abfrage1[CreationDate]; "DD.MM.YYYY")
After I connect both date columns it works as expected.
Best Regards
Atlan
sayaliredij
Super User
Super User

Looks all good 

Just connect creation date to the date from date table and check if its working

Thanks,

sayali 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @sayaliredij 

i connectet both tables like the enclosed pic. I enclosed also two pics. The Tableview is empty but there are two values that must show in Jan. 24. But nothing. Only the values that orginaly had the date value with time 00:00:00 will show in the tablevisual.

connection.JPGtable empty.JPGmissing-values.JPG

 

Thanks for your efforts.

Regards

Atlan

sayaliredij
Super User
Super User

HI @Atlan 

 

sure i undestand !!

 

Can you provide me following screenshot?

Table Abfrage is data view .. where i can see how column creation date look like 

Table Date 

Thanks,

Sayali





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi yes.

I hope this is what you need.

Date-tableview.JPGAbfrage1-tableview-creationdate.JPG

I changed the format form Date/ time to Date.

Regards.

Atlan

sayaliredij
Super User
Super User

Hi @Atlan ,

 

Can you share your pbix file? i can check and recommend you

 

Thanks,

Sayali





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi

I cant give you pbix file couse there are sensitiv Data what could not be published.

Can i give you other Informations?

Regards

Atlan

sayaliredij
Super User
Super User

Hi @Atlan ,

 

You can solve this problem using the following step.

1. Create new calculated column date using formule - 

newdate = 'tablename'[olddate].[Date]

change the data type of new column as date not date/time

sayaliredij_0-1704279254386.png

2.  for preselected slicer - date table - also do the same . the column which is used for relation should be in data type 'Date' 

 

Only changing format would not help 

 

Thanks and Regards,

Sayali

Please mark the question solved when done and consider giving a thumbs up if posts are helpful!! 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi,

@sayaliredij 

thanks for the fast replay.

Im an absolute new bee. I tried your solution but I cant implement in the right way.

Here som Pics for a better oversight about my configuration:

create.JPGtables.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks for your efforts.

Regards

Atlan

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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