Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

How to pull the most current unit price value in OBIEE analysis

Received Response
11
Views
4
Comments
2682164
2682164 Rank 1 - Community Starter

In analysis, am displaying list of items, with avg unit price, Amount, UOM etc. Now I want to add the most recent unit price. How can i do it in analysis.

I have po_creation_date. But Max of it wouldn't work in filter

Answers

  • Souvik Sarkar
    Souvik Sarkar Rank 3 - Community Apprentice

    Is there a column to identify the latest Unit Price? Any load date or some other sort of info? If so, simply include them into the report, create a rank measure on that column and hide the column. After this, just filter that column wihich equals to 1 showing just the Top record. It is as simple as that, if I have understood your query correctly.

  • In the RPD you can set the aggregation to "LAST", so why not adding a new measure next to the AVG unit price being the LAST one ?

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Gianni has it correct.

    Only thing you need to think about in terms of aggregation logic:

    Would it "just" be the last unit price?

    Or would it be the last unit price by time and the avgerage along all other dimensions - whichnInassume is the actual correct thing you want to model.

    So you would need to mark the measure as "Based On Dimensions" and the set the aggregation to LAST for the time dimension and AVG for all others

  • 2682164
    2682164 Rank 1 - Community Starter

    Yes! This is working! Thank you so much!