2 Replies Latest reply: Jan 26, 2011 5:18 AM by Adam Abwat-Johnson RSS

    Set Analysis and Date Field

    Adam Abwat-Johnson


      I don't know how many posts I've read about Set Analysis and using a Date field but unfortunately I'm going to have to add one more!

      I'm doing a formula:

      max({<[ResUnitPrice.Effective Date]={"<=$(InstructionDate)"}>}ResUnitPrice.UnitPriceKey)

      to get the latest resource line for a job based on when the job was created (InstructionDate field). The formula above seems to disregard the InstructionDate field and just bring me back the latest resource line. This is different to the following formula which gives me the correct result:

      =max(if([ResUnitPrice.Effective Date]<=InstructionDate,ResUnitPrice.UnitPriceKey))

      Does anyone know why this is the case?

      From here I'm hoping to get the price for this resource line so I can start doing some price calculations but I'm falling at the first hurdle.

      Hoping someone can help,