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
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 ?
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
Yes! This is working! Thank you so much!