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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
TomSinAA
Helper III
Helper III

Date column with date data type displays multiple values in filter

I have a date value (TMS_ACTUAL_DELIVERY_DATE) in my data table with data type as DateTime.  I created another column (Delivery Date) using the date value column and changed it's data type to Date.  However the filter for the new column looks like it's treating the values as DateTime and not Date only.

 

TomSinAA_0-1744053490557.png

 

Fitler shows multiple lines for 8/28/24 on Delivery date.  It should only list one since the column is a Date type and not DateTime.

TomSinAA_1-1744053550832.png

 

This appears to be impacting the join of the Delivery Date column to the Calendar table which was created with this script:

create_date =
ADDCOLUMNS (
CALENDAR (DATE(2023,1,1), DATE(2050,12,31)),
"DateAsInteger", FORMAT ( [Date], "YYYYMMDD" ),
"Year", YEAR ( [Date] ),
"Monthnumber", FORMAT ( [Date], "MM" ),
"YearMonthnumber", FORMAT ( [Date], "YYYY/MM" ),
"YearMonth", (Year([Date]) * 100 ) + MONTH([Date]),
"YearMonthShort", FORMAT ( [Date], "YYYY/mmm" ),
"MonthNameShort", FORMAT ( [Date], "mmm" ),
"MonthNameLong", FORMAT ( [Date], "mmmm" ),
"DayOfWeekNumber", WEEKDAY ( [Date] ),
"DayOfWeek", FORMAT ( [Date], "dddd" ),
"DayOfWeekShort", FORMAT ( [Date], "ddd" ),
"Start of Week", [Date]  - WEEKDAY([DATE],1),
"End of Week", [Date] + 7 - WEEKDAY([DATE],1),
"Quarter", "Q" & FORMAT ( [Date], "Q" ),
"YearQuarter", FORMAT ( [Date], "YYYY" ) & "/Q" & FORMAT ( [Date], "Q" ))

 

1 ACCEPTED SOLUTION
v-nmadadi-msft
Community Support
Community Support

Hi  @TomSinAA,
Thanks for reaching out to the Microsoft fabric community forum.

To enable consistent date filtering across your data model, you should create a dedicated date dimension table and establish one-to-many relationships from this calendar table to the date fields in your other tables, with the calendar table on the 'one' side. This allows you to apply filters to the shared calendar table, which will then propagate through the model via these relationships.

If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards

View solution in original post

5 REPLIES 5
v-nmadadi-msft
Community Support
Community Support

Hi  @TomSinAA,
Thanks for reaching out to the Microsoft fabric community forum.

To enable consistent date filtering across your data model, you should create a dedicated date dimension table and establish one-to-many relationships from this calendar table to the date fields in your other tables, with the calendar table on the 'one' side. This allows you to apply filters to the shared calendar table, which will then propagate through the model via these relationships.

If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards

DataInsights
Super User
Super User

@TomSinAA,

 

Try defining Delivery Date as follows:

 

Delivery Date =
INT ( Movements[TMS_ACTUAL_DELIVERY_DATE] )

 





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

Proud to be a Super User!




It worked by creating the delivery date column using the Date function (i.e. Yr, Month, Day) rather than setting the data type on the new column. 

uzuntasgokberk
Super User
Super User

Hello @TomSinAA ,

Why don't you make relationship to your DimDate instead of joining? İf you'd like to "Table view" in your PBI --> Click "New Table" --> paste your create_date script --> make relationship dimdate and facttable by date column (one to many). In you filter side you'll see only unique date's. That is best practice.

Best Regards,
Gökberk Uzuntaş

LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/

Medium: https://medium.com/@uzuntasgokberk

 

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

I did create the relatationship.  However it did not work until I created the delivery date column in the data table using the Date function rather than setting the data type to Date only.  

TomSinAA_0-1744058543909.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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