简体   繁体   中英

How to convert SQL script to tableau filter?

I have SQL script as below:

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

I want to replicate this in tableau using data source filters

Create a calculated field with this formula:

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

Set it to True in the data source filters

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM