KPI Adjustment Table -
I have a table with the monthly summary of the KPI client now wants to be able to make adjustments in the original data. I am allowed to preserve original data along with adjustments. The report that I generate will show any adjustments by reporting the original data + or subtraction
Here is an example that I need to be able to do.
A report requests to minimize KPI_1_QTY from customer 5/31 kPi_1_QTY 88
Customer 5. This result is being KPI_1_QTY 83. I need to report 83, but have to keep the original value also.
Any ideas about the code are many ways to address the general problem of having audited trails of the original data.
The simplest line is to include the timestamp and in the "IsHead" bit field. For example:
FactID timestamp attribute value is 2 8/1 kPi_1_QTY 83 true 1 7/31 kPI_1_QTY 88 false
If you have "head of data" "If you want a branch, then you filter on IsHead = true (usually you create a view for it).
If you want a change log, you can display all the rows in descending order by a timestamp.
If you want the data to be present at a particular point at that time, (left as an exercise for the reader).
If there are related properties related to the adjustment, then create another table with the required field to describe the change. For example ...
Delta details on modified value by modified by factidized 2 Feet 8/1 -5 adjusted KPI_1_QTY per customer request
Comments
Post a Comment