Forum Discussion

mechaloupi's avatar
mechaloupi
New Member
8 years ago
Solved

Error when using Sameperiodlastyearwith filter

Hi everybody,  i want to  compare  sales data between current year and the last year , i used the follwing DAX Formula :    TOTAL SALES = sum('Sales DB'[Sales] ) Total Sales LY = CALCULATE([Tota...
  • mechaloupi's avatar
    mechaloupi
    8 years ago

    i found this solution in forum 

    If it is a measure which is using any date function which expects contiguous date range, bi-directional filter ends up removing some dates and thus its no longer a contiguous date range which could be crashing the measure.

    Both Cross Filter Direction for date is not yet supported. Therefore they have designed an error, which is the one we see here. Once you change the Cross Filter Direction to Single, there is nothing that isn't supported anymore, therefore the error goes away.