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] FML: Is it possible to display different format by rows without RECAP?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[closed] FML: Is it possible to display different format by rows without RECAP?
 Login/Join
 
Platinum Member
posted
We need to produce a report that each row has different format of data, for example:






















DEPT 1 DEPT 2
Total Revenue ($) $100,000 $ 22,111
Total Employee (count) 142 99
Revenue Increase (%) 1.5% 2.1%


The only way I found is to create a dataset like this:


TYPE DEPT NUMBER
====== ===== ======
rev DEPT1 XXX
emp_count DEPT1 XXX
percent DEPT1 XXX

And use FML to produce the output like this:

TABLE ABC
SUM NUMBER
ACROSS DEPT
FOR TYPE

rev LABLE r NOPRINT OVER
RECAP revenue/D10M=r; AS 'Revenue' OVER

...
END

The problem is for each row I have to hide it first to get a label, then repeat the same row with a RECAP to customize the output format. Is there a way I can only do it once without a RECAP, or any better solution?

Thanks!

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


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report This Post
Gold member
posted Hide Post
You could transpose the data like this post shows Transpose data.

Just make sure it is one row per department before using the code in the link above.


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 78 | Registered: November 08, 2010Report This Post
Silver Member
posted Hide Post
sorry dont have time to show utilizing the car file, however you'll get the picture:
DEFINE FILE myfile
NEWFMT/A8 = IF TYPE EQ 'REV' THEN 'D15M' ELSE IF TYPE EQ 'PERCENT' THEN 'D8.1%' ELSE 'D12' ;
END
TABLE FILE myfile
SUM NUMBER/NEWFMT
ACROSS PERIOD
FOR TYPE REV OVER
EMP_COUNT OVER
PERCENT
END

We utilize this technique when we have to MacGuyver many metric columns into a singular metric column to do FML type reporting. Hope it helps.


7.7.04
Win2K3, Unix
Oracle 10G,SQL2K,XFOCUS,ESRI,BID,MRE,SELF-SERVICCE
 
Posts: 36 | Location: Melville,NY | Registered: August 09, 2004Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by jimbo:
sorry dont have time to show utilizing the car file, however you'll get the picture:
DEFINE FILE myfile
NEWFMT/A8 = IF TYPE EQ 'REV' THEN 'D15M' ELSE IF TYPE EQ 'PERCENT' THEN 'D8.1%' ELSE 'D12' ;
END
TABLE FILE myfile
SUM NUMBER/NEWFMT
ACROSS PERIOD
FOR TYPE REV OVER
EMP_COUNT OVER
PERCENT
END

We utilize this technique when we have to MacGuyver many metric columns into a singular metric column to do FML type reporting. Hope it helps.


This is exactly what I needed. I'm amazed you can use a variable as format string in this way. Thanks jimbo!


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report 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] FML: Is it possible to display different format by rows without RECAP?

Copyright © 1996-2020 Information Builders