Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Total Sum Based on Defined Timestmp

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Total Sum Based on Defined Timestmp
 Login/Join
 
Member
posted
Dear Forum Member,

I'm trying to build & run a report with the following syntax. However, I'm hit with FOC 280 (comparison between computational and alpha values is not allowed. Any advise or assistance is very much appreciated.

Thanks.

SDAT/DMYY=HDATE(VOICELOGGER.STARTTIME, 'YYMD');
TIME/HHIS=HEXTR(VOICELOGGER.STARTTIME, 'HHIS',8,'HHIS');
SHIFT1/A20=
IF CALL EQ 'Incoming' AND TIME GE '09:00:01' AND TIME LE '17:30:00' THEN '1' ELSE '0';
SHIFT2/A20=
IF CALL EQ 'Incoming' AND TIME GE '17:30:01' AND TIME LE '09:00:00' THEN '1' ELSE '0';
END

TABLE FILE VOICELOGGER
SUM
SHIFT1/I7C
SHIFT2/I7C

BY VOICELOGGER.SDAT AS 'DATE'

This message has been edited. Last edited by: Tamra,


R7.7.0.1
Windows, All Outputs
 
Posts: 15 | Location: Malaysia | Registered: January 19, 2012Report This Post
Expert
posted Hide Post
Check the example listed in the help file for HEXTR and you will see how to achieve this.

TIME/HHIS=HEXTR(VOICELOGGER.STARTTIME, 'HIS', 8, 'HYYMDS');

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thanks Tony will check on it.
 
Posts: 15 | Location: Malaysia | Registered: January 19, 2012Report This Post
Virtuoso
posted Hide Post
Looking at this code, a couple of suggestions come to mind:

The current code will return only a '1' or '0' for SHIFT1 and SHIFT2 as you are using SUM on an alpha field.

SHIFT2 cannot be true as no time can be greater than or equal to '17:30:01' AND less than or equal to '09:00:00'.

I would suggest:
SDAT/DMYY=HDATE(VOICELOGGER.STARTTIME, 'YYMD');
TIME/HHIS=HEXTR(VOICELOGGER.STARTTIME, 'HHIS',8,'HHIS');
SHIFT1/I7C =
IF CALL EQ 'Incoming' AND TIME GE '09:00:01' AND TIME LE '17:30:00' THEN 1 ELSE 0;
SHIFT2/I7C =
IF CALL EQ 'Incoming' AND (TIME GE '17:30:01' OR TIME LE '09:00:00') THEN 1 ELSE 0;
END

TABLE FILE VOICELOGGER
SUM 
SHIFT1
SHIFT2

BY VOICELOGGER.SDAT AS 'DATE'


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Total Sum Based on Defined Timestmp

Copyright © 1996-2020 Information Builders