Forum Discussion
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 date | article viewer | article viewed id |
| 10/10/20 4:00 PM | Jimmy Jimson | 123456 |
| 10/10/20 3:00 PM | Sarah Sarahson | 123456 |
| 10/10/20 1:00 PM | john johnson | 123455 |
| 11/10/20 10:00 AM | peter peterson | 123458 |
| 10/10/20 4:00 PM | marky markson | 123789 |
| 10/10/20 4:00 PM | marky markson | 123789 |
| 10/10/20 4:00 PM | marky markson | 123790 |
Table name: Ratings
| article rated date | article rater | article rated ID |
| 10/10/2020 4:10pm | jimmy jimson | 123456 |
| 10/10/2020 3:01pm | Sarah Sarahson | 123456 |
| 11/10/20 10:11 AM | peter peterson | 123458 |
| 10/10/2020 4:10pm | marky markson | 123790 |
| 10/10/2020 4:10pm | marky markson | 123789 |
| 11/10/2020 4:10pm | marky markson | 123789 |
Table name: Incidents
| incident created date | incident caller name | incident id |
| 10/10/20 5:00 PM | jimmy jimson | INC789000 |
| 10/10/20 3:24 PM | Sarah Sarahson | INC789001 |
| 10/10/20 2:45 PM | john johnson | INC789002 |
| 11/10/20 5:00 PM | marky markson | INC789004 |
| 12/10/20 5:00 PM | marky markson | INC789005 |
| 10/10/20 3:43 PM | marky markson | INC789006 |
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 date | article viewer | article viewer id | article rated date |
| 11/10/20 10:00 AM | peter peterson | 123458 | 11/10/20 10:11 AM |
| 10/10/20 4:00 PM | marky markson | 123789 | 10/10/2020 4:10pm |
Any assistance would really be appreciated - thanks so much! π
6 Replies
- TomMartensSuper User
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
- MichaelHutchensHelper V
Hi @TomMartens , I've uploaded the PIBX file and data source (Excel spread sheet) here π
- TomMartensSuper 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-msftCommunity 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.
- MichaelHutchensHelper 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-msftCommunity 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.