Forum Discussion

powerbiexpert22's avatar
powerbiexpert22
Icon for Impactful Individual rankImpactful Individual
1 year ago
Solved

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 an...
  • MasonMA's avatar
    1 year ago

    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])