如何反转 Cognos 数据项中表达式的姓氏和名字?

How to reverse the Lastname,Firstname of an expression inside a Cognos data item?

我在 Cognos 中创建了一个列表报告,LAST NAME 列当前按姓氏、名字的顺序排列,除名字外没有空格,其中包含第二个名字。

来自当前的设置

    LAST_NAME COLUMN
    Morello,Mortel     
    Chopra,Deepak      
    Fothergill,Mike Edward   
    Smith,David        

我希望得到这个结果。

    NEW DATA ITEM
    Mortel Morello
    Deepak Chopra
    Mike Edward Fothergill
    David Smith

我尝试使用子字符串函数,但它不起作用。

substring(LAST_NAME, position(',', LAST_NAME)+1, 
inStr(LAST_NAME, ' ',position(',', LAST_NAME)+1, 1))

这应该有效:

substring([Last Name],position(',',[Last Name])+1) 
+ ' ' +
substring([Last Name],1,position(',',[Last Name])-1)