如何在QuickSight控件中选择今天的日期作为默认日期? [英] How to select today's date as default date in QuickSight Controls?

查看:186
本文介绍了如何在QuickSight控件中选择今天的日期作为默认日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在信息中心下方,我想将日期控件设置为默认的今天。这样,每当页面加载时,默认过滤器就会应用到今天的日期。我在过滤器中使用了此参数。



解决方案

我自己也遇到了同样的问题。



这会逐步引导您: https://docs.aws.amazon.com/quicksight/latest/user/parameters -set-up.html#parameters-default-values



主要是要在数据库中为用户默认值创建一个表。 / p>

我创建了一个包含每个Quicksight用户ID的表格(通过右上角的Manage QuickSight查找用户ID)。



然后我创建了一个视图,以便每当刷新数据时就设置一个动态的今天字段,因为您不能将计算出的字段用于动态参数值。



然后,我创建了一个视图新数据等在分析中使用此视图,并使用用户ID字段将其链接到参数动态值。



这感觉很不错,但为每个用户提供了很多灵活性。


In below dashboard, I want to set date control to default as today's date. So that whenever the page load the default filter gets applied for today's date. I am using this parameter in my filters.

解决方案

ran into the same issue myself.

This walks you through it: https://docs.aws.amazon.com/quicksight/latest/user/parameters-set-up.html#parameters-default-values

The main thing is that you have to create a table in your database for user defaults.

I created a table with each Quicksight user ID (find user IDs via Manage QuickSight in top right corner).

I then created a view to set a dynamic 'today' field whenever the data is refreshed as you can't use calculated fields for dynamic parameter values.

I then created a new dataset within the analysis using this view and linked it to the parameter dynamic values using the user id field.

It feels pretty roundabout but gives you lots of flexibility for each user.

这篇关于如何在QuickSight控件中选择今天的日期作为默认日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆