Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Need help selecting a value using userelationship

I have a calendar table that contains offset values for day, week, month, etc.  These allow me to setup my visuals with filters such as 'WeekOffset = 0" for week-to-date valuses.  The issue I have is that my active relationship is Order Date -> Calendar Date.  Howerver, I want to use the ShipDate -> Calendar Date.  I've used userelationship for valuse, but can't get it to work for setting of a value to use in my filters.

 

I've tried the following but get incorrect values.

 

Offset-Day Shipped =
    CALCULATE(SUM('Calendar'[DayOffset]),
    USERELATIONSHIP(order_file[SHIPPED_Date], 'Calendar'[Date])
    )

I'm sure I'm missing something simple with this one.  

2 Replies