Dear All,
in the ODS object I have a certain number of records. Each record represent a repair made on a specified vehicle. For example:
Vehicle | Repair ID | Repair Date
XYZ 1 01/01/2005
FGH 4 05/01/2005
...
XYZ 6 06/01/2005
What I need is to create an infocube that can provide me the information about how many DISTINCT vehicle have been repaired.
In other words what I need is to put the data into the infocube according to a "SELECT DISTINCT" from the ODS object.
I kindly ask you which is the best way to do that job.
Thank you in advance.
Regards,
R.C.
My strategy will be, as you suggested, the following:
ODS 1^ LEVEL -> "Select DISTINCT" -> ODS 2^ LEVEL
What is not so clear to me is where/how define the "group by" statement between the ODS 1 and ODS 2.
Must I write a routine or it is possible to specify the group by parameters in other ways?
Thanks,
R.C.
Roberto,
if I right understood, to obtain what you want it's enough to put into your query only 'Vehicle' as dimension analysis (on the rows) and a Counter KF (on the column) always equal to '1'.
In this way you will have a list of all repaired vehicle (one row for every vehicle even if there are a lot of repairs on it) and, as overall result, your desired 'how many vehicle have been repaired'...
Let me know if this is your need or if you want some more info...
Hope it helps (and please don't forget to assign some points by clickin'on the yellow star to the contributors that help you !!!)
Bye,
Roberto
Add a comment