Forum Discussion

powerbignc's avatar
powerbignc
Helper I
3 years ago
Solved

Dax USERELATIONSHIP not working

I put together as a simple example of an issue that I'm having with the UseRelationship dax measure not working.   The problem is I have a date table where the date column is the unique key and we ...
  • amitchandak's avatar
    3 years ago

    powerbignc , for Time intelligence better to use date table and TI functions

     

    example

     

    Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
    Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

     

     

    Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
    Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s