数据集数据格式为: 1/2/A.zip或者1/A.zip, 其中/符号可能有多个,如何截取到目录字符串:1/2和1
JOINARRAY(SLICEARRAY(split("1/2/A.zip","/"),1,LEN(split("1/2/A.zip","/"))-1),"/")
你要有具体规则,如果你只说取1/2
那left("1/2A.zip",3)就可以
如果你是要把A.zip去掉
那就replace("1/A.zip","/A.zip","")
=JOINARRAY(REVERSEARRAY(SPLIT(MID(JOINARRAY(REVERSEARRAY(SPLIT("1/2/A.zip","")),""),FIND("/",JOINARRAY(REVERSEARRAY(SPLIT("1/2/A.zip","")),""))+1,len("1/2/A.zip")),"")),"")