Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Tim intelligence: % Change, Overall Usage %, & Position Change

I'm hoping someone can assist. I have a table of document reference numbers, datestamps of when they were validated ("Hits"), and who validated them, as part of a support process:

 

DocIdHit UserHit DateHit User Department
400029Jimmy James23/09/2019 10:43Sales
400029Jimmy James21/08/2019 10:43Sales
400029Kelly kellyson23/09/2019 10:43Finance
400029Kelly kellyson23/09/2019 10:43Finance
400029Peter Peterson4/08/2019 12:05Services
400030Peter Peterson4/08/2019 12:05Services
400030Petra Petrason23/09/2019 10:43C-Suite
400030Sarah Sarahson4/08/2019 12:05Finance
400030Sarah Sarahson21/08/2019 10:43Finance
400030Jimmy James23/09/2019 10:43Sales
400030Kelly kellyson4/08/2019 12:05Finance
400030Kenny Kennyson23/09/2019 10:43Sales
400030Kenny Kennyson21/08/2019 10:43Sales
400030Mark Markson4/08/2019 12:05Sales
400030Mark Markson23/09/2019 10:43Sales
400035Michael Hutchens4/08/2019 12:05Services
400035Peter Peterson23/09/2019 10:43Services
400035Petra Petrason4/08/2019 12:05C-Suite
400035Petra Petrason21/08/2019 10:43C-Suite
400035Petra Petrason4/08/2019 12:05C-Suite
400035Petra Petrason23/09/2019 10:43C-Suite
400035Sarah Sarahson21/08/2019 10:43

Finance

 

I'd like to be able to create a table that shows the following:

 

DocIDTotal Hits Last Month% Change Since Month -2% Usage Last MonthPosition Change From Month -2
4000293+150%33%+1
4000304-66%44%--
4000352-40%22%-1

 

Rules

  • There is no particular order that the table rows are in - they could be all mixed up, or sorted by one or another column;
  • In this example I'm using September 2019 as 'Last Month' and August 2019 as 'Month -2';
  • % Usage Last Month = hits for the Doc last month, as a % of total hits for all articles in the top 20 (also from last month);
  • Position Change From Month -2 = Ranking change for each DocID in the top 20. If no ranking change then it should be "--", and if the DocID is new to the top 20, then it should state "New";
  • There is no particular order that the table rows are in - they could be all mixed up, or sorted by one or another column;
  • In this example I'm using September 2019 as 'Last Month' and August 2019 as 'Month -2';
  • % Usage Last Month = hits for the Doc last month, as a % of total hits for all articles in the top 20;
  • Position Change From Month -2 = Ranking change for each DocID in the top 20. If no ranking change then it should be "--", and if the DocID is new to the top 20, then it should state "New".

Any help would be greatly appreciated!

  • Hi  mhutchens81,

    You could refer to my sample file to see whether it work or not.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • dax's avatar
    dax
    Community Support

    Hi  mhutchens81,

    You could refer to my sample file to see whether it work or not.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi dax , that looks to be 95% of what I need - I really appreciate your quick response!

       

      Would it be possible to avoid hard-coding month names and numbers into the calculations? That way I can use this as a rolling monthly report as it would refer to 'last month' and 'the month before last month', rather than 'August' or 'month 8' (for example) specifically:

       

      • dax's avatar
        dax
        Community Support

        Hi

        You could use below expression to replace september(9)

        MONTH(TODAY())-1

        Best Regards,
        Zoe Zhi

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.