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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

date table is not filtering sales

somehow not sure date table is not filtering sales table and i am unable to create bar chart to show sales by year,

sales table is joined based on order date and datedim table is created from min and max values of order date

please see below screenhsot and sample pbix file

https://drive.google.com/file/d/1UDKJkjubwV70b-Mx5bb0EmA99vm8ppD6/view?usp=drive_link

 

 

powerbiexpert22_0-1760028909988.png

powerbiexpert22_1-1760028941454.png

powerbiexpert22_0-1760029117249.png

 

1 ACCEPTED SOLUTION
MasonMA
Community Champion
Community Champion

Hi

Your Order Date contains time as well. To have DimDate filter Fact table, both columns would need to be only Date. But this cannot be done by only changing the Order Date column’s format in the data view or model view, as the underlying values still include the time portion. Since i'm not able to transform your Data in Power query, i created one date column from Order Date. and rebuild the relationship. 

Date =
DATEVALUE(Sales_Orders[OrderDate])

MasonMA_0-1760033771461.png

MasonMA_0-1760034733729.pngMasonMA_1-1760034779042.png

 

 

View solution in original post

2 REPLIES 2
MasonMA
Community Champion
Community Champion

Hi

Your Order Date contains time as well. To have DimDate filter Fact table, both columns would need to be only Date. But this cannot be done by only changing the Order Date column’s format in the data view or model view, as the underlying values still include the time portion. Since i'm not able to transform your Data in Power query, i created one date column from Order Date. and rebuild the relationship. 

Date =
DATEVALUE(Sales_Orders[OrderDate])

MasonMA_0-1760033771461.png

MasonMA_0-1760034733729.pngMasonMA_1-1760034779042.png

 

 

d_m_LNK
Responsive Resident
Responsive Resident

To start with something simple, this seems like an issue with the relationship and potentially data type mismatch. Are both the order date and date in the date table set to the same data type?  I would check the order date data type first.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.