cancel
Showing results for 
Search instead for 
Did you mean: 

First Value based on History Timestamp

Former Member
0 Kudos

Hello all,

I'm looking for some way how to create variable, which shows me only first value based on history timestamp. To be more exact... I have history fields in my report and some numeric values. Firstly, I've created variable running count - based on history timestamp, which give me # 1 to first value. Then I need to create new variable, which shows me value, where running count is 1 - for each ID (I have duplicate IDs in my report and therefore I want to see this #1 value in each record). I've used several options already, but unfortunately none of them was working 100% correctly. Don't you have an idea how could I solve my problem?

Btw. To use filter is not sufficient for me - I need this variable for further analysis.

Thanks in advance

Juraj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

you can use rank function in webi.

you can do the ranking for timestamp & on basis of that you can fitler the records.

if you want more help then please provide the snapshot of report and objects being used.

Thanks,

Swapnil

Former Member
0 Kudos

Hi Swapnil,


Yes, that is a solution, but if I rank my records and then use filter, although I'll have expected results, I can not work with this results in next steps. Therefore I'd like to create some variable for that.


Here is an example:


Incident IDHistory TimestampVar_RunningCountVar_OLD CBIExpected Value to be shown
IM111117.10.2014 9:08133
IM111117.10.2014 11:35253
IM111119.10.2014 15:46353
IM44441.6.2015 15:58144


I've tried several options with IF, but none of them was working 100% correctly until now.


Thanks


Juraj

Former Member
0 Kudos

What is your actual requirement can you please show me by giving example??

You can give ranking by using rank funcion in webi and then you can use nofilter function on top of rank so that even if you filter the report rank will give you correct output.

I hope you undestand my point.

Thanks,

Swapnil