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
imagautham
Helper II
Helper II

Will filtering be an issue in the following scenario?

I have two tables. Calendar is a dimension table whose granularity is one day per row. Calendar table is filtering the sales which is my fact table. The common column connecting the two columns is the date column.

The date column in my calendar is of the format MM/DD/YYYY (Example:12/25/2019)

The date column in my sales table is of the format MM/DD/YYYY HH:MM:SS (Example: 12/25/2019 12:00:00 AM)

I know that we can convert the date column in sales table to match the date column in calendar table.

But I'm curious to know if I don't convert and leave the column as it is, Will Power BI able to handle this or will there an issue in this case?

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @imagautham ,

 

Yes. The date field and the date/time field are two different data types. You need to keep their types the same by means of conversion, otherwise it will cause filtering errors.

 

Reference to the following similar solution is also caused by this type of problem.

vhenrykmstf_1-1656496547444.png

details


If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @imagautham ,

 

Yes. The date field and the date/time field are two different data types. You need to keep their types the same by means of conversion, otherwise it will cause filtering errors.

 

Reference to the following similar solution is also caused by this type of problem.

vhenrykmstf_1-1656496547444.png

details


If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, just change the data type of that column to Date.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

Thanks Ashish for the response. But will It be an Issue if I dont convert to date datatype?

I do not hink so but please try.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.