简体   繁体   中英

How do I use a custom JOIN calculation to return only last two words from a value?

I have the following dataset that I'm trying to import from SQL into Tableau

在此处输入图像描述

So I would want to go from the first column, to the second column:

在此处输入图像描述

So far I have the following custom query but it's only going off of characters:

STR (LEFT ([Membership Code], 5))

How could I change it to give me the desired results?

Do you want this?

Replace ([rollup_name], 'Organisation/HFT/USA/Z01/R01/D08/0053/', '')

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