Skip to Content
author's profile photo Former Member
Former Member

Cell comparision in WEBI report table

Hello Guys,

How to compare value of each cell in a column of a table?

For example:

SUBJECTS MARKS FLAG A1 12 1 A2 42 2 A3 20 1 A4 30 3 A5 30

The FLAG variable works like this.

If Marks[i] > Maraks[i+1] then FLAG=1

If Marks[i] < Maraks[i+1] then FLAG=2

If Marks[i] = Maraks[i+1] then FLAG=3

Need your help here on achieving this. Thanks a lot for your help.

Shreyas

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on May 12, 2014 at 10:42 AM

    Use the formula below:

    FLAG =If([MARKS]>RelativeValue([MARKS];([SUBJECTS]);1);1;If([MARKS]<RelativeValue([MARKS];([SUBJECTS]);1);2;If([MARKS]=RelativeValue([MARKS];([SUBJECTS]);1);3)))

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 12, 2014 at 10:15 AM

    Hi Shreyas,

    What is your exact requirement explain clearly........?

    Thank you

    Mustafa

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2014 at 12:16 PM

    Hi Shreyas,

    What is 'i' in the FLAG condition.

    Thank you

    Mustafa

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey Mustafa,

      Marks[i] is value in cells in Marks column. So iteratively i wrote it as Marks[i].

      In simple programming terms:

      Marks[0]=12

      Marks[1]=42

      Marks[2]=20

      Marks[3]=30

      Marks[4]=30

      Thanks

      Shreyas

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.