Hi,
I have to develop an Ad Hoc report on OBIEE 11g but I miss a SQL formula to get a data from the DB.
Here is what I have:
A field named “Event” with different events (‘Bas’, ‘Proc’, ‘Dev’, ‘Qual’, ‘Aud’) when the tools were used. Note that there is no chronological order in these events.
To visualize, you can imagine a table with “Tool ID” in rows, “Event” in column, and “Use_date” in the cells.
My objective is to create a new field (let’s call it “verification_required”) which would indicate if a verification of the tool is required after an event. At the end I will use this field for a conditional formatting in the table described above.
Rule to define if verification is required is simple: a tool must be verified after an event if the date of this event (use_date) is after the date of the event ‘Qual’ of this same tool.
Is there any SQL function or Tip to retrieve - in a formula - the use_date when event ‘Qual’ took place for a specific Tool_ID#? Is it even possible to do this?
Thanks in advance