gpt4 book ai didi

amazon-quicksight - 亚马逊 quicksights 比较时间段

转载 作者:行者123 更新时间:2023-12-01 13:30:56 27 4
gpt4 key购买 nike

关闭。这个问题需要更多focused .它目前不接受答案。












想改善这个问题吗?更新问题,使其仅关注一个问题 editing this post .

2年前关闭。




Improve this question




折线图或条形图可以比较两个时间段吗?
示例按月比较 2017 年至 2016 年的销售收入,以查看 2017 年 1 月与 2016 年 1 月、2 月 17 日至 2 月 16 日等的比较。

在图表中,我想看看我在期间之间是上涨还是下跌。
数据可以在任何需要的情况下进行操作,但简单地看起来像这样

currentDate CurrentSum  PreviousSum
1/1/2016 1949 1917
2/1/2016 2217 1949
3/1/2016 2180 2217
4/1/2016 2197 2180
5/1/2016 2320 2197
6/1/2016 2267 2320
7/1/2016 2187 2267
8/1/2016 2355 2187
9/1/2016 2226 2355
10/1/2016 2175 2226
11/1/2016 2356 2175
12/1/2016 1939 2356
1/1/2017 2072 1939
2/1/2017 2310 2072
3/1/2017 2453 2310
4/1/2017 2128 2453
5/1/2017 2515 2128
6/1/2017 2403 2515
7/1/2017 1244 2403

最佳答案

我设法使用折线图来做到这一点。就我而言,我将每个月的销售总和可视化并过滤结果以仅显示过去 3 个月:

enter image description here

您应该能够通过稍微修改我的解决方案来实现相同的目的:

  • 使用以下公式创建两个计算字段:saleDateMonth = extract('MM',saleDate)saleDateYear = extract('YY',saleDate)
  • 使用以下公式创建一个表示每月运行总和的计算字段:runningSumSales = runningSum(sum({sale price}),[{saleDateMonth} ASC],[{saleDateYear}])
  • 创建折线图/可视化
  • 对现场井使用计算字段如下:x-axis: saleDateMonth , value = runningSumSalescolor: saleDateYear .请注意,这三个字段对应于运行总和公式中使用的字段。

  • 我的油井如下所示:

    enter image description here

    请注意,您可能必须根据上述解决方案调整数据字段名称,但我认为这应该很容易。此外,为了仅获取过去 3 个月的数据,我使用了具有相对日期范围的标准过滤器。

    关于amazon-quicksight - 亚马逊 quicksights 比较时间段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45971901/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com