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] YTD Function in Developer Studio

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] YTD Function in Developer Studio
 Login/Join
 
Member
posted
Hi Guys!
I am trying since last week to create a YTD Function or something inside the Developer Studio. I have created a synonym that has Date Field and a sales Measure...and I need to have the Sales for YTD... when they place the Calendar (date) in the Web Focus Report (InfoAssist), like September 2013, and move Sales YTD, they need to see the Sales for entire Yr until Sep. I tried creating User Defined Function... or a Compute inside the Definition...but I didnt have luck FrownerFrowner Any help would be really appreciate it!!!
Thx, Pats.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 15 | Registered: February 11, 2014Report This Post
Guru
posted Hide Post
Maybe this will give you some help.
  
-DEFAULTH &YEAR = '1996'
-DEFAULTH &MNTH = '09'

DEFINE FILE GGSALES
DATE_YYMD/YYMD = DATECVT(DATE, 'I8YYMD', 'YYMD');
MNTH/M = DATE_YYMD;
YEAR/YYYY = DATE_YYMD;
END

TABLE FILE GGSALES
SUM
   DOLLARS/D20.2CM AS 'Dollars'
   COMPUTE CUM_DOLLARS/D20.2CM = IF MNTH NE LAST MNTH THEN CUM_DOLLARS + DOLLARS ELSE CUM_DOLLARS; AS '*** Dollars'

BY YEAR AS 'Year'
BY MNTH AS 'Month'
WHERE YEAR EQ '&YEAR';
WHERE MNTH LE '&MNTH';
END


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Member
posted Hide Post
Thank you so much Mighty for your reply.
I am pretty new in WF.. I started last week working on it. And am not sure where should I add those Define File and Table File... is not only for Report painter? And does not work for my Synonym Definition?
Thanks in advance.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 15 | Registered: February 11, 2014Report This Post
Guru
posted Hide Post
Sounds like you need some training.
Can't really help you in that area.
There are some tutorials in the Dev Studio help files.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
<Kathryn Henning>
posted
Hi Pats,

Welcome to Focal Point!

Since you're fairly new to WebFOCUS and InfoAssist, I'd like to recommend opening a case on InfoAssist Online. We can look at your files and determine the best approach for this.

Thanks and regards,

Kathryn
 
Report 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] YTD Function in Developer Studio

Copyright © 1996-2020 Information Builders