cancel
Showing results for 
Search instead for 
Did you mean: 

How to compare rows in a report

amadese
Participant
0 Kudos

Hi,

Is is possible to do something like follows with Webi? I do not know if I have equally to update the universe...

Idfnamelnameaddcity
statezip
1
ABC
test 1123 stYork
FL
21025
2ABCtest 2123 stPenn

FL
21025

Given the above scenario, is it possible to compare items row by row and column by column and display only the things that have changed. For example

lname changed from 'test 1' to 'test 2', city changed from 'York' to 'Penn'.

Display a label 'lname changed from 'test 1' to 'test 2' on lname field, display a label 'city changed from 'York' to 'Penn'.

Can this be done ?

Many thanks in advance for your help

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

tanveer1
Active Contributor
0 Kudos

Hi,

Create formula as below

= if ([lname] <> previous[lnmae]) then "lname changed from " + previous[lname] +"  to " + [lname]

Similarly for city also

Thanks,

Tanveer.

amadese
Participant
0 Kudos

Hi Tanveer,

Thanks for your reply,

In fact I have a linked table (linked_activity) with another table (activity). The link is done thanks to the user id and the activity id.

Table activity


Activity IDTitleCost
1Activity Title 11000
2Activity Title 2500


Table linked_activity


IDUser IdActivity id
111
212
322

I have equally history tables for all 3 tables (with same information and other fields as date, user and action as 'create', 'update' or 'delete').

- If an update is done on a user, a new line is added to the user_history table.

- If an update is done on an activity or on the link, the relating table is updated and a new line is added to the user_history table of the database.

In my universe I have all these information and I can display each line from the history table for the user.

But I would like to have the list of person with the changes done (either on the user details as done above or if no change has been done on the user details, I would like to see if the activities have been changed (link or activity details)

For example:


PersonUpdates
1

lname

city

2Activity

1 (cost)

2 (title)

3no

Could you please help me to do that?

Thanks in advance for your reply

amadese
Participant
0 Kudos

Nobody can help me to do this kind of report?

tanveer1
Active Contributor
0 Kudos

Hi Sebastien,

Is it not the same issue posted as


Is it not solved yet ? it says as answered though !

Thanks,

Tanveer.

amadese
Participant
0 Kudos

Hi Tansveer,

Your formula is useful and is working, It's ok for this topic even if I can not create the report as wanted.

For the other topic it still concerns for this kind of report, but under another layout, and the solution given is hepfull but I have not solved my final problem.

Regards

Answers (0)