Forum Discussion

MichaelHutchens's avatar
5 years ago

Measuring deflection rates

Hi folks,

I'm hoping that someone can assist. I work for a customer support organization that has a self-service customer knowledge portal, and I'm wanting to put together a report that shows deflection rates. We have defined 'deflection' as:

When a user has viewed an article, AND rated it within 12 hours of the view datestamp, AND when they have not logged an incident within 24 hours of the view datestamp

I have three tables, one showing articles viewed, who viewed them, and the datestamp of the viewing. The second table shows articles that have been rated, who rated them, and the datestamp of the rating. The final table shows incidents created, who they were created for, and the datestamp of their creation.

Table name: Viewed

article viewed datearticle viewerarticle viewed id
10/10/20 4:00 PMJimmy Jimson123456
10/10/20 3:00 PMSarah Sarahson123456
10/10/20 1:00 PMjohn johnson123455
11/10/20 10:00 AMpeter peterson123458
10/10/20 4:00 PMmarky markson123789
10/10/20 4:00 PMmarky markson123789
10/10/20 4:00 PMmarky markson123790



Table name: Ratings

article rated datearticle raterarticle rated ID
10/10/2020 4:10pmjimmy jimson123456
10/10/2020 3:01pmSarah Sarahson123456
   
11/10/20 10:11 AMpeter peterson123458
10/10/2020 4:10pmmarky markson123790
10/10/2020 4:10pmmarky markson123789
11/10/2020 4:10pmmarky markson123789


Table name: Incidents

incident created dateincident caller nameincident id
10/10/20 5:00 PMjimmy jimsonINC789000
10/10/20 3:24 PMSarah SarahsonINC789001
10/10/20 2:45 PMjohn johnsonINC789002
   
11/10/20 5:00 PMmarky marksonINC789004
12/10/20 5:00 PMmarky marksonINC789005
10/10/20 3:43 PMmarky marksonINC789006



I've experimented with a couple different table relationships, based on the user's names and also the datestamps, but haven't been able to get what I wanted. Ultimately I'm looking for a calculated table that shows columns for:

  • article viewer
  • article viewed id
  • article viewed date
  • article rated date


Counting the lines of this calculated table should show me total deflections. Based on the sample data above, I'd expect the following to be counted as deflections:

article viewed datearticle viewerarticle viewer idarticle rated date
11/10/20 10:00 AMpeter peterson12345811/10/20 10:11 AM
10/10/20 4:00 PMmarky markson12378910/10/2020 4:10pm



Any assistance would really be appreciated - thanks so much! πŸ™‚

6 Replies

  • Hey MichaelHutchens ,

     

    please consider to create a pbix that contains the sample data from your post above, upload the pbix to onedrive or dropbox and share the link.

     

    Regards,

    Tom

      • TomMartens's avatar
        TomMartens
        Super User

        Hey MichaelHutchens ,

         

        can you please explain why Marky Markson | 123790 | article viewing date: 2020-10-10 4:00 PM is not considered in your result

         

        Regards,

        Tom

         

  • v-zhenbw-msft's avatar
    v-zhenbw-msft
    Community Support

    Hi MichaelHutchens ,

     

    We can create a relationship between Viewed table and Ratings table based on a new column to meet your requirement.

     

    1. We need to remove duplicated value firstly in Viewed. Select all columns and right-click, then choose Remove Duplicates.

     

     

    2. Then we need to create a column in Viewed and Ratings.

     

     

     

    3. At last we can create a relationship based on that column and create a table visual to get the result.

     

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

     

    Best regards,

     

    Community Support Team _ zhenbw

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

     

    BTW, pbix as attached.

    • MichaelHutchens's avatar
      MichaelHutchens
      Helper V

      @ @v-zhenbw-msft thanks so much for responding πŸ™‚ Ultimately I need a report that just shows the 2 rows identified in my original post.

  • v-zhenbw-msft's avatar
    v-zhenbw-msft
    Community Support

    Hi MichaelHutchens ,

     

    Why output two rows in your original post?

    What is the calculate logic?

    Have you tried Filter when you create the relationship as previous post we mentioned?

     

    Best regards,

     

    Community Support Team _ zhenbw

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