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     [SOLVED] PARTIAL AGGREGATION

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] PARTIAL AGGREGATION
 Login/Join
 
Platinum Member
posted
Hi Guys,
I have been having the following error and can't figured out what the cause is.

"
(FOC11207) ERROR IN THE QUERY:
(FOC11306) REQUESTS CAUSING PARTIAL AGGREGATION ARE NOT ALLOWED
"

The sample code is as below. The code works fine if ACROSS fielld MNTH is changed to a BY field. It also works if "Page
Please, can you help.

-SET &NO_OF_MONTHS = -6;
-SET &TODAY_DT = EDIT(&DMYY,'99999999');
-SET &CURRENT_DT=&DATEYY | &DATEM;
-SET &INITIAL_DT=AYM(&CURRENT_DT, &NO_OF_MONTHS,'I6YYM');
-SET &FIRST_DT=EDIT(&INITIAL_DT,'$$$$99') | EDIT(&INITIAL_DT,'9999');

TABLE FILE VOL_REPT
SUM
ATC/D19.2-C AS ''
BY COUNTRY
BY NEW_PRODUCTS AS 'NEW
BY TYPE1
ACROSS MNTH AS ''
ON COUNTRY SUBTOTAL AS 'TOTAL'
HEADING
"VOLUME REPORT"
FOOTING
"Report Filtered by:<+0>ATC"
"Report Produced in:<+0>Euros"
"PageWHERE ( CONVT_TO_CRRNCY EQ 'EUROS' ) AND ( MNTH GE '&FIRST_DT' );

In addition to the above, is it possible to have records for a particular country printed on the next page if it can not be contained in one page? for example:
US = 10 records
CA = 5 records
UK = 7 records

Assuming a page can only contain 20 records, I want to be able to print records for US and CA on one page and then all 7 UK records be printed on the next page instead of printing 5 UK records in page 1 and then the remaining 2 records in the next page.

Thank you.

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


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Report This Post
Gold member
posted Hide Post
Emeke,

I have not been able to reproduce your error using CAR or GGSALES. What is the format of VOL_REPT?

The error text is:
(FOC11306) REQUESTS CAUSING PARTIAL AGGREGATION ARE NOT ALLOWED
Partial Aggregation is caused by presence of "IN GROUPS OF", multiple
erb/key sets as well as active non-Parent/Child hierarchies that do not have
ssociated sort keys or filter tests resulting in unique member selection.

Re: countries on separate pages, use: ON COUNTRY NOSPLIT. If you want to have US and Canada on the same page, create a DEFINE field representing US+CA and use it as a BY field before COUNTRY

e.g. something like:

DEFINE FILE VOL_REPT
CTRY2/I1 = IF COUNTRY EQ 'US' OR 'CA' THEN 1 ELSE 2;
END

TABLE FILE VOL_REPT
...
BY CTRY2 NOPRINT NOSPLIT
BY COUNTRY
BY.....
END


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report This Post
Platinum Member
posted Hide Post
Thank you for your response. VOL_REPT is a FOCUS masterfile built from MS Analysis services Cube.

Thank you.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Report This Post
Master
posted Hide Post
I do not know if this is a post error or if you code actually looks like this but the AS 'New is missing a closing quote '.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
its a post error. The code actually has the quotation complete. Thank you.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Report This Post
Expert
posted Hide Post
If this is an issue with the SQL generated, extract the data first into a HOLD file then produce the report, see if the error persists.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
The code looks simple to start using hold file. Can anyone point out what could be wrong with the code.

Thank you.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Report This Post
<JG>
posted
There is nothing wrong with the code except that it does not take into account special rules that apply
when processing against OLAP cubes.

The error as microfich pointed out is self explanitory, and the solution is to create a hold file and
generate the output against that.
 
Report This Post
Platinum Member
posted Hide Post
Using HOLD file, I was able to resolve the problem. But I wonder how ordinary page number and across field should be causing problems

Thank you all.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Report This Post
<JG>
posted
quote:
across field should be causing problems

Across because it can generate null cells in the Matrix.

TABPAGENO is a real odd ball, I doubt that you have a column named that in your master,
which is the only logical reason I can think of.

Try using the client traces to see exactly what SQL is being generated for the request.
 
Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by JG:
quote:
across field should be causing problems

Across because it can generate null cells in the Matrix.

TABPAGENO is a real odd ball, I doubt that you have a column named that in your master,
which is the only logical reason I can think of.

Try using the client traces to see exactly what SQL is being generated for the request.



TABPAGENO and TABLASTPAGE are FOCUS reserved variables for page number. I guess you don't need to have it in a master file for it to work.


WebFOCUS 7.7.02
Windows/SQL/CUBES
HTML/PDF/XLS
 
Posts: 117 | Registered: November 18, 2009Report This Post
<JG>
posted
You should avoid using ANY WebFOCUS reserved word as a column name in your masters
 
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     [SOLVED] PARTIAL AGGREGATION

Copyright © 1996-2020 Information Builders