显示时间轴上的客户行为

时间:2018-10-01 20:51:26

标签: excel database charts powerpivot powerquery

我有一个数据集,我想知道是否有可能消除行为模式。假设我在一家酒店工作,并且拥有每个客户的住宿数据库。每行条目都是客户独特的酒店住宿。

第一列是客户的唯一ID

第二列是客户首次入住酒店的日期(跨多个行(例如ID)的同一日期)。

第3列是自定义LTD平均。客户评分,因此每一行的值都保持不变,如第1列和第2列。

第4列是客户预订房间的日期

第5列是客户签到的日期

第六列是客户退房的日期

是否可以使用数据将数据透视表/将其放入图表或Excel中的某些内容中,以便可以查看/过滤是否存在趋势?我没有运气就尝试过自己,也找不到任何文章。

答案/趋势我正在尝试查找并显示在图表或视觉效果中。 -得分高(4分和5分)的客户往往会在酒店住宿时间长的那年年初预订,而得分低的顾客会在今年晚些时候预订并短期住宿。

我还希望能够查看一个客户的行为(我通过使用其ID作为数据透视表中的过滤器来进行此操作。但是,我找不到一种方法来使数据在设置时间轴并正确分组数据的图表)

谢谢!

示例数据集:

+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| Customer ID | Date of First Hotel Stay | LTD Avg. Customer Rating | Hotel Room Book | Hotel Room Check-In | Hotel Room Checked-Out |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 1ABCDEFG    | 1/3/2010                 | 5                        | 1/3/2010        | 3/1/2010            | 3/15/2010              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 1ABCDEFG    | 1/3/2010                 | 5                        | 1/5/2011        | 5/5/2011            | 5/19/2011              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 1ABCDEFG    | 1/3/2010                 | 5                        | 1/1/2012        | 6/1/2012            | 6/15/2012              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 3ABCDEFG    | 2/28/2010                | 4                        | 2/28/2010       | 4/15/2010           | 4/20/2010              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 3ABCDEFG    | 2/28/2010                | 4                        | 2/1/2011        | 4/1/2011            | 4/6/2011               |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 3ABCDEFG    | 2/28/2010                | 4                        | 2/2/2012        | 4/20/2012           | 4/25/2012              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 2ABCDEFG    | 5/1/2010                 | 3                        | 5/1/2010        | 9/8/2010            | 9/8/2010               |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 2ABCDEFG    | 5/1/2010                 | 3                        | 6/1/2011        | 8/8/2011            | 8/10/2011              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 2ABCDEFG    | 5/1/2010                 | 3                        | 6/1/2012        | 9/7/2012            | 9/10/2012              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 4ABCDEFG    | 11/1/2010                | 2                        | 11/1/2010       | 11/10/2010          | 11/11/2010             |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 4ABCDEFG    | 11/1/2010                | 2                        | 10/1/2011       | 10/3/2011           | 10/4/2011              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 4ABCDEFG    | 11/1/2010                | 2                        | 9/15/2012       | 9/20/2012           | 9/21/2012              |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 5ABCDEFG    | 10/15/2010               | 1                        | 10/15/2010      | 10/16/2010          | 10/17/2010             |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 5ABCDEFG    | 10/15/2010               | 1                        | 10/15/2011      | 10/16/2011          | 10/17/2011             |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+
| 5ABCDEFG    | 10/15/2010               | 1                        | 10/15/2012      | 10/16/2012          | 10/17/2012             |
+-------------+--------------------------+--------------------------+-----------------+---------------------+------------------------+

0 个答案:

没有答案