简体   繁体   中英

OBIEE getting the latest dimension column value based on time

Say that I have an analysis with the columns Month , Difficulty , and Score . The report has a filter Month = August , but the column Difficulty changes within the dates in August. For example, Difficulty = 'Hard' for 08/01/2021 and Difficulty = 'Easy' for 08/31/2021 . How do I show only one row with the latest difficulty based on the time dimension, Month?

In this example, it should show only one row with Difficulty = 'Easy' and Score as the sum of all scores for the month instead of multiple rows every time that difficulty changes within the month

Instead of the following:

Difficulty Score
Hard 5
Easy 7

It should show:

Difficulty Score
Easy 12

Not sure if I can achieve this using selection steps. I tried setting the aggregation in the RPD for the Difficulty column to Last, but I don't think it works for non-measure columns.

Well, you should consider some cases. First of all, you should use the date format monthly in your analysis. (without day) Next, you should use some aggregation function. (either in RPD or analysis criteria) Last, you should sort your report according to date DESC also you can use that date column on your report and hide it. (in full date format)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM