如何将SQL脚本转换为Tableau筛选器?

问题描述 投票:0回答:1

我有如下的SQL脚本:

select name, location, max(trans_date)
From dataset
group by name, location

我想使用数据源过滤器在Tableau中复制它

sql tableau
1个回答
0
投票

使用此公式创建计算字段:

[trans_date]={FIXED [name],[location]:MAX([trans_date])}

在数据源过滤器中将其设置为True

© www.soinside.com 2019 - 2024. All rights reserved.