Forum Discussion

Claudine_Ma's avatar
Claudine_Ma
Frequent Visitor
1 year ago
Solved

Total YTD with USERELATIONSHIP

Hey all,    I struggle with some DAX and would appreciate a little help as I can´t seem to figure this one out.    So I have a client table (Dimension Table) where some clients have terminated th...
  • lbendlin's avatar
    1 year ago
    How can I write a DAX measure where the date slice affects both the revenue YTD (revenue only for the selected timeframe) and the termination date (only clients terminated in the selected time range)? 

    No need for the inactive relationship.   Add a filter to your calculation

     

    Revenue YTD = CALCULATE(TOTALYTD(SUM(Revenue),Dim_Date[Date]),Client[Termination Date] in VALUES(Dim_Date[Date]))