Quantcast
Channel: SCN : Unanswered Discussions - BI Platform
Viewing all articles
Browse latest Browse all 5661

help/webi - find value corresponding to maximum datetime/seq. in group of values

$
0
0

Hello,


WebI 4.0 Sp6, Data in SQL Server, using *.unx universes

My Data Looks like this.

***********************
S.No.      Group      seq      datetime

A123      M           1           01/02/2014 12:00:00 PM
A123      Y           2           01/02/2014 12:50:00 PM

B345      Z           1           01/02/2014 12:50:00 PM
B345      H           2           01/02/2014 12:52:00 PM
B345      K           3           01/02/2014 12:55:00 PM

C678      A           4           01/03/2014 11:00:00 PM
C678      B           8           01/03/2014 11:45:00 PM

***********************

I want to get the Group values (lets call it "finalgroup") for each S.No using its corresponding max.seq value OR/and max.datetime

S.No.      max.seq      *max.datetime                     *finalgroup
A123           2                01/02/2014 12:50:00 PM      Y
B345           3                01/02/2014 12:55:00 PM      K
C678           8                01/03/2014 11:45:00 PM      B

I need my final report to be displayed like this sectioning by S.No

***************************
[Section: S.No]

Sno: |* max Final Group | *max Datetime | max seq

-----

[Section: S.No]

Sno: |* max Final Group | *max Datetime | max seq
***************************
So i created sections based on S.No. Then I have tried creating variables but keep getting #multivalue errors when i display the finalgroup value.

max_seq: =Max([seq]) In Block
finalGroup=[Group] Where ([seq]=[max_seq] In Block)

Tried the same with datetime but no luck.

Any help appreciated on how to extract and display this as stated above.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>