Visokio website     Downloads     Video tutorials     KnowledgeBase  
Formulae: CountIF work around? - Visokio Forums
Formulae: CountIF work around?
  •     SherrickChavda October 19, 2012 6:54AM
    Hi Visokio - Hope someone can help me out.

    I am looking to generate a formula that can consecutively count all the occurrences of a value in another column. Maybe the attachment will help you to understand:

    In Excel we have Cookie ID and the Touch Points column counts the consecutive individual events. Basically I want to replicate what is in the Excel image attachment in Omniscope.

    The formula we use in Excel is below if that helps:
    =IF(COUNTIF($A$1:$A$10,A1)>1,COUNTIF($A$1:A1,A1),"")

    Thanks - Sherrick Chavda
    Attachments
    2012-10-19_1130.png 99K
  • 4 Comments
  •     paola October 19, 2012 11:42AM
    Hi, if you wish to count appearance of every Cookie ID, you should use Subset formulas

    SUBSET_NONEMPTYCOUNT([Cookie ID], SUBSET([Cookie ID]))

    You can also have different cookie count for every visit, where you see same ID, but at a different time. In that case you will use above formula, but will replace SUBSET with SUBSET2, that will combine [Cookie ID] with [Time] field.
    In this scenario you will have to format the Time field to be a date field, and contain dd/MM/yyyy elements (day part can be hidden, but must be present in the field).

    For a summary - list of cookie IDs and count against each - use Aggregation in the Table View, with Singleton as default function in your formula field.
  •     SherrickChavda October 22, 2012 6:40AM
    Hi Paola,

    Thanks for your response. The problem with the above, is that the formula has given the total number of Cookie ID appearances per row rather than counting each one individually.

    If you can let me know if there is another formula to use or a workaround that would be great.

    Many thanks,

    Sherrick Chavda
    Attachments
    2012-10-22_1139.png 53K
  •     paola October 23, 2012 12:05PM
    Hi, this formula will count appearances of the same Cookie Id, and list them in chronological order (in my case Date/Time field).

    RANK([Date],[Date],true, SUBSET([Cookie ID]))

    "True" stands for ascending order - if omitted order will be descending.
  •     paola October 23, 2012 12:27PM
    If we were to use your data set (where there is no Date/time field) you could add a row number, as a new field, and then replace [Date] with that field in the Rank function above.

    CURRENTROW()

Welcome!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership