Forum Discussion

HarsimranPWRBI's avatar
7 years ago
Solved

Problem with USERELATIONSHIP

I'm trying to create a measure to get Sales Amount w.r.t Delivered Date where CalenderYear is 2007 but having trouble with same.   For Sales Amount w.r.t Delivered Date works well  and show amount ...
  • avanderschilden's avatar
    7 years ago

    Hello,

     

    Try this (with the correct table and column names from your model) ;

    Delivered Amount 2007 =
    CALCULATE(
    SUM(Sales[Amount]),
    USERELATIONSHIP('Date'[Date],Sales[DeliveryDate]),
    YEAR(Sales[DeliveryDate])=2007
    )
     
    Let me know!
     
    Regards,
     
    Adrian