Skip to main content

Hi,

Could you help me come up with a solution for the following scenario?

In general I want to display if there is change in both the previous and current values for data records and then count.

For example, I need to count all customers whose values have changed between the selected dates.

Matching values 

My usecase is to compare the data for each combination of customer_id, segment, and category. If there is a difference in value between the selected dates, calculate the distinct count of (customer_id & category).

 

Ex 1: Selected dates: 2/1/2012 (new) and 1/30/2012 (old),

As the value changed for customer_id : CS-2490 and Segment = Furniture, from "Binders A" to "Binders" then count as 1 i.e. countd (customer_id & category) and ignore Consumer/Art records as there is no change in the values.

 

imageIf there no change, then do not count this custid.

imageEx: 2

Dates: 2/1/2012(new) & 1/27/2012(old) .

for custid CS-2490 As there is change in the value(Null to Binders for Home Office and no record for consumer in old ) then count should be 2. i.e. countd(cust id&category)

 

I want the calculation in such a away that the logic should be part of calculation instead of having it as a filter pane.

Output.

  1. Total number of unique custid's i.e. countd(cust id&category)
  2. Total number of unique custid's by Segments
  3. Display the records that are changed only using action filter.

Let me know if you need further clarification or examples.

5 answers
0/9000