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.
There is a Fact table with Month and other dimension keys in it. I will be passing a Month filter as a prompt for the report. My report structure is Current_Year_Value,Last_Year_Value and some of the dimension values.
ie. if I give 201308(YYM) as filter, it should retrieve 201308 and 201208 value.
How can I achieve it?. Need your valuable suggestions.
We do something like that using MATCH FILE and converting the previous year to this year, like so:
SET ASNAMES = ON
DEFINE FILE GGSALES
YEAR2/I4 = YEAR +1;
END
MATCH
FILE GGSALES
SUM DOLLARS UNITS
BY YEAR
BY CATEGORY
WHERE YEAR EQ 2013;
RUN
FILE GGSALES
SUM DOLLARS UNITS
BY YEAR2 AS YEAR
BY CATEGORY
WHERE YEAR EQ 2012;
AFTER MATCH HOLD AS YADAYADA OLD-OR-NEW
END
-RUN
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Suppose, &SELDATE is your variable that contains the year/month value, for example 201308. The following statement will create the begin date: -SET &STARTDATE = &SELDATE - 100; It will now contain 201208. Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Assuming your filter is called &MONTH_FILTER, and has a value of '201308', and assuming your date format is YYM:
-SET &A_YEAR_AGO = AYM(&MONTH_FILTER,-12,'I6');
DEFINE FILE Your_DB
Current_Year_Value/P20 = IF Your_YYM EQ &MONTH_FILTER.QUOTEDSTRING THEN
Your_Value_Field ELSE 0 ;
Last_Year_Value/P20 = IF Your_YYM EQ &A_YEAR_AGO.QUOTEDSTRING THEN
Your_Value_Field ELSE 0 ;
END
TABLE FILE Your_DB
SUM Current_Year_Value Last_Year_Value
BY Your_Dimensions
IF Your_YYM EQ &MONTH_FILTER.QUOTEDSTRING OR &A_YEAR_AGO.QUOTEDSTRING
END
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008