cancel
Showing results for 
Search instead for 
Did you mean: 

window function option in Webi report

florin_stoica1
Explorer
0 Kudos

Hi,

I'm looking for a way to replicate the functionality of a window function in Webi. One order can have multiple comments. I'm looking for a way to display in the report only the last comment and the user who commented. In a database there will be smth like RN=row_number()over (partition by [OrderNumber] order by [CommentDate] DESC). The RN for the last comment will be 1 and I will filter on 1 to only list the last comments. Is there a way to achieve thisin Webi?

amitrathi239
Active Contributor
0 Kudos

can you share the screenshot of your data.

florin_stoica1
Explorer
0 Kudos

The expected result is in the RN column. 1 represents the max Action Date. In this way, when I filter on 1 I will only have the max Action Date rows.

Accepted Solutions (1)

Accepted Solutions (1)

amitrathi239
Active Contributor
0 Kudos

try like this.

Var Show/Hide=if([Action Date]=Max([Action Date]) in ([Order]) then "Show" else "Hide"

Apply filter on var Show/Hide where equal to Show.

florin_stoica1
Explorer

Many thanks, it works!

Answers (0)