on 03-14-2018 11:11 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many thanks, it works!
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.