问题标签 [amazon-quicksight]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
5844 浏览

amazon-web-services - QuickSight:如何根据添加的参数中提供的输入使用 ifelse() 或任何其他替代方法来处理多个条件?

ifelse()当我在编辑数据时尝试添加计算字段时,我会在“函数”列表中选择添加参数。我得到了 sumif、avgif、countif 等选项,但我只能提供一个条件。我想根据ifelse(0)用户从下拉列表中选择的参数值创建具有多个条件的函数。

0 投票
1 回答
462 浏览

amazon-quicksight - 如何使用月份名称设置控件

在我的数据库中,我有一列 created_at (日期时间格式)。我想创建一个分析仪表板,当可以通过 create_at 通过提供月份名称来过滤数据时(一个或多个 - 多项选择)

我在数据集中添加了一个新的计算字段“月”,公式如下:

formatDate(truncDate("MM",{created_at}),"MM" )

结果,我得到了带有“01”、“02”等字符串的新列。

我创建了一个新参数:名称:月份数据类型:字符串值:多个值:{01、02、03 ....}

我创建了一个新控件:名称:月份样式:多选下拉值:链接到数据集字段 -> 数据集 -> 月份列

我根据 Month 参数为 Month 列创建了一个新过滤器

我的问题是:如何在控件中显示月份名称而不是“01”、“02”等来实现相同的结果(按月份过滤、多选)。这可能吗?

更新

在月份计算字段中有以下公式要好得多:

extract("MM",{create_at})

但它并没有解决我的问题......

0 投票
1 回答
413 浏览

amazon-quicksight - 如何对控件的值进行排序

创建控件时,您需要设置控件值(特定的或从日期设置字段链接的)。我创建了一个包含月份名称的控件(Jan, Feb,....)。问题是控制值似乎是按字母顺序排序的(Apr, Aug, Dec,....)——这根本不是用户友好的。

我已经尝试了两种设置(特定值,从 db 链接的值),但结果相同

知道如何按month_id 对列表元素进行排序吗?

0 投票
1 回答
390 浏览

row-level-security - 应用行级安全性后,我们无法解析 AWS QuickSight 中出现的 SQL 语法消息

AWS QuickSight 中的某些报告在应用行级安全性后不再显示。将出现一条消息,而不是可视化:

如果未应用行级安全性,或对于特定用户,报告将按预期显示。

0 投票
1 回答
7131 浏览

amazon-web-services - 在 AWS Quicksight 中加入多个数据集

我只是想知道是否有任何方法可以在 Amazon Quicksight 中加入数据。我有几个数据集,每个数据集都是从一个单独的数据库创建的。我想知道是否有任何方法可以将这些数据集连接在一起。

谢谢

0 投票
0 回答
384 浏览

amazon-web-services - 为成本和使用报告错误设置 Amazon Athena 和 QuickSight

我正在点击此链接为 athena 设置我的成本和使用情况报告。

目前我成功启动了堆栈并添加了 lambda 触发器。

根据指南,此时,在 Lambda 控制台中,我应该创建了这 5 个函数。 aws-cost-n-usage-S3-lambda-fn-B aws-cost-n-usage-main-lambda-fn-A aws-cost-n-usage-S3-lambda-fn-B-2 aws-cost -n-usage-Athena-lambda-fn-C aws-cost-n-usage-Athena-lambda-fn-C-2

但我缺少 fn-c 和 fn-c-2

检查我的 Athena 控制台后,我还面临一些无法创建任何表的问题,

雅典娜 SQL 查询:

错误输出与此类似:

尝试按照错误中的建议清理文件夹。但它不工作。

还有其他建议吗?

0 投票
1 回答
4051 浏览

amazon-web-services - AWS QuickSight - 创建基于度量的字段之间差异的计算字段

我正在使用 aws quicksight 并希望创建我的行之间的差异值的计算字段(而不是在数据透视表中),以便我可以可视化每个度量之间的差异

主要目标是可视化(折线图)我得到的每次读数的变化......

有可能吗?

我应该使用自定义 SQL 查询创建额外的数据集并加入它们吗?

感谢帮助!

0 投票
1 回答
1218 浏览

amazon-quicksight - 如何在 AWS QuickSight 中计算年龄

我有birth_date,哪个函数可以让我从今天的日期中减去它?谢谢

我使用 NOW() 尝试了 DateDiff ,但这没有用。

我想知道这个人截至今天的年龄

0 投票
1 回答
1326 浏览

amazon-web-services - JSON List of Dictionaries Querying in AWS Athena/Glue vs Quicksight

(This question is very similar to Store multiple elements in json files in AWS Athena)

I have a JSON file in an S3 bucket that is structured like this -

Two questions:

  1. Why is it that if I send this directly to Quicksight, Quicksight knows to normalize the file perfectly (unless there are multiple files in the bucket that don't match (which is why I'm trying Athena)) but Athena struggles with it? I know it has something to do with formatting (each dictionary isn't on its own line, it's a list of dictionaries and not just dictionaries, etc) but it seems so unnecessary to modify the original file if there is another service on AWS that knows how to parse and flatten it without an issue.

  2. I'm using a Python script in Lambda to call the API and the list of dictionaries is the format it comes in. Is there a simple way to format the JSON file in the way Athena likes? Below is an example of my current script -

Disclaimer: I am fairly new to AWS/coding in general and have encountered many challenges while trying to understand the AWS documentation, so my apologies if this is a simple fix.

0 投票
2 回答
1861 浏览

amazon-web-services - 数据透视表中的计算字段小计未显示正确的值

我正在 AWS 中开发 QuickSight。我正在尝试在数据透视表中实现加权平均值。

  • 我正在使用 SPICE 数据来创建此分析。
  • 我使用公式“percentOfTotal(sum(upb),[{pool_num}]) * sum({remaining_terms})”在分析中创建了一个计算字段 (WAM)。
  • 这为我提供了每个行级别的所需值,但特定列的小计不反映计算字段中的值的总和,而是显示“remaining_terms”字段中原始值的总和。

请参见下图相同。有人可以对此有所了解吗?

在此处输入图像描述

在此先感谢您的帮助

请注意,我在 Excel 数据透视表中尝试过相同的方法,并且效果很好。