Tableau 拆分字符串并从 x 令牌中取出直到令牌结束

编程入门 行业动态 更新时间:2024-10-26 12:24:14
本文介绍了Tableau 拆分字符串并从 x 令牌中取出直到令牌结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有一个字符串字段,想要获取从位置 x 到结尾的所有元素".

I have a field of strings and want to take all the "Elements from position x until the end.

例如,有一个 字段名称" 列,其中包含以下值:

For example there is a "Field Name" column with the following values:

/一/二/三/三/四/五/六

因此我想要:

两个三/四六个

我尝试使用 SPLIT([Field Name], '/', 2) 但随后缺少four".有没有办法从令牌 2 一直到令牌结束?

I tried with SPLIT([Field Name], '/', 2) but then the "four" is missing. Is there a way to talk from token 2 until the end of tokens?

推荐答案

这应该有效:

RIGHT([Field Name],LEN([Field Name]) - FINDNTH([Field Name],"/",2))

这将返回字符串 [Field Name] 的右侧部分并指定保留最后 n 个字符,其中 n = 原始字符串的长度减去第二个/"的位置.

This is returning the right part of the string [Field Name] and specifying to keep the last n characters, where n = length of the original string minus the location of the second "/".

这篇关于Tableau 拆分字符串并从 x 令牌中取出直到令牌结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 11:27:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1408857.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:令牌   字符串   并从   结束   Tableau

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!