Forum Discussion

btalahmbong's avatar
btalahmbong
Advocate II
9 years ago
Solved

Calculate difference using 2 dates in 1 table

Hi,   I have 2 dates column in my case table; 'created on' & 'resolved on'. I want to calculate the net difference between cases created and reolved on.   So far, I have 2 measures to calculate t...
  • vanessafvg's avatar
    9 years ago

    btalahmbong you need to use the userelationship function

     

    when you create relationships to your calendar table (assuming you have one?), there can be only one primary (active) relationship, that will be the default, the inactive relationship will have a dotted line 

     

    can you post a pic of your relationships.

     

    therefore for your measure for the inactive relationship, say its the resolved on date

     

    calculate(measure, userelationship([table]resolvedondate, calendar[date]))