OBIEE - 子串的语法错误?

时间:2018-02-15 04:05:31

标签: analysis obiee

我将以下代码视为对OBIEE分析中字段公式的编辑,但却返回错误。有什么想法吗?

SUBSTRING("Dim - Vendor Header"."Dock Time", 
LOCATE(':',"Dim - Vendor Header"."Dock Time")+1, 
  (CHAR_LENGTH("Dim - Vendor Header"."Dock Time") - 
LOCATE(':',REVERSE("Dim - Vendor Header"."Dock Time")) - 
LOCATE(':',"Dim - Vendor Header"."Dock Time")))

错误如下:

Formula syntax is invalid.
[nQSError: 10058] A general error has occurred. [nQSError: 43113] Message 
returned from OBIS. [nQSError: 27002] Near <)>: Syntax error [nQSError: 
26012] .Please have your System Administrator look at the log for more 
details on this error. (HY000)
SQL Issued: SET VARIABLE DISABLE_CACHE_HIT=1; SELECT Substring ("Dim - 
Vendor Header"."Dock Time", LOCATE(':',"Dim - Vendor 
Header"."Dock Time")+1) FROM "XHSS - Vendor"
OK (Ignore Error)

1 个答案:

答案 0 :(得分:1)

obiee12c中是否有任何函数字符串REVERSE? 你可以试着只给出配方中的下面部分,并检查同样的错误是...

(CHAR_LENGTH(“Dim - Vendor Header”。“Dock Time”) - LOCATE(':',REVERSE(“Dim - Vendor Header”。“Dock Time”))