Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

expression -- help needed

I have a table containing data which somehow looks like this:

ServiceIdBeforeAfterDateTimeUpgradeConf....
14562349-9-2010 11:45:13C2.1
123465410-9-2010 13:43:34C3.1
23441329-9-2010 11:45:54C2
213256410-9-2010 11:49:12C2i
234465411-9-2010 12:41:13C3.1
311223413-9-2010 13:44:32C2i


What I want to achieve is something like this:

UpgradeConfAmount...
C20
C2i1
C2.10
C3.12


The amount for the UpgradeConf should be the sum of the last known value for the service Id ... depending on the selected date ...

So If I have a date selected like 10-9-2010 the following should be shown:

UpgradeConfAmount...
C20
C2i1
C2.10
C3.11


I don't have a clue how to solve this ... anyone got suggestions??

thx in advance,

Anita

2 Replies
Miguel_Angel_Baeyens

Hello Anita,

You may use ConfUpgrade as dimension and the following as expression

aggr(Count(ServiceId), UpgradeConf, DateTime)


Hope that helps

Anonymous
Not applicable
Author

This is not totally the solution i guesse ...

DateTime should not be exactly the date time ...

Lets say the serviceId 1 has the following date/times:

9-10-2010 12:34:56
9-10-2010 16:14:44
11-10-2010 23:10:21
12-10-2010 14:11:35
15-10-2010 21:53:25

When the selected Date=

9-10-2010 -- the 9-10-2010 16:14:44 should be taken
10-10-2010 -- the 9-10-2010 16:14:44 should be taken
11-10-2010 -- the 11-10-2010 23:10:21 should be taken
12-10-2010 -- the 12-10-2010 14:11:35 should be taken
15-10-2010 -- the 15-10-2010 21:53:25 should be taken

So the date selected has effect on the selection.

The last row for each ServiceId which is lower or equal to the selected date should be taken into account ...

rgrds