Substring in HFR
Hi
Im trying to extract a part of the member of year dimension and use it in the Report Header.
Can it be done in HFR? If not, is there a workaround?
Thanks,
Vibhuti
thats a major drawback of hyperion financial reporting of not having any string functions. as per my knowledge there is none.
Let me know if you get to know of the same. Coz even I need it for couple of things in my reports.
regards,
rahul
Similar Messages
-
Hello Experts,
Iam a rookie in HFR. I needed to know how to implement the Substring functionality in Hyperion. Can anyone throw some light on this?thats a major drawback of hyperion financial reporting of not having any string functions. as per my knowledge there is none.
Let me know if you get to know of the same. Coz even I need it for couple of things in my reports.
regards,
rahul -
Compare two members from the same dimension in HFR
Hi,
Is it possibe to compare two members from the same dimension in HFR? The requirement is to compare Year and Week members from the same dimension. The Week date will be selected from POV. The corresponding Year date should be displayed in the report. Week dates are in the format W2008-03-07 and Year dates are in YTD2008-03-07.
The dates are same except the preceding character.I am unable to compare these two. In my understanding there's no substring or replace functions in HFR.
Kindly help. Thanks in advance.
Regards,
UmaHi,
How is your database structured? it may be possible to use the 'RelativeMember' function if it will always be the same number of steps between the 'W' member and the 'YTD' member, e.g. if your hierarchy is something like:
Time
.Weeks
..W2008-03-07
..W2008-03-10 etc.. for 52 weeks
.YTD
..YTD2008-03-07
..YTD2008-03-10 etc.. for 52 weeks
In your report select 'Current Point of View for Time' in one row/column and in the other use:
RelativeMember set up as follows:
Member: Current Point of View for Time
Offset: 52
Hierarchy: Time
RelativeMemberList: Lev0, Time
UseFirstDescendant: leave unselected
Hope this helps
StuartGame
www.analitica.co.uk -
IF and SUBSTR in XML Publisher
Hi
I am developing a XML RTF template for a report.
All I am trying to do is, if first 4 letters of the data of xml tag ITEM = 'Summ'
then print a constant word 'Notes'
<?if: xdofx:substr(ITEM,1,4)=’Summ’?> Notes<?end if?>
I have been trying hard. IF and SUBSTR is not at all going along. Always throwing some error. Can some one please help me to resolve this issue
ThanksHi,
I have a similar requirement, however instead of static text in the example i.e ITEM I am trying to get a substring from a tag value directly. Ex - Tag Value <eod>23-10-2009<eod>. I am trying to pick up the value 10 in the particular example and trying to compare with 1, which would be false and hence I need to print as false. I cannot use a hardcoded value since the value between the tags <eod> is dynamic and I need to use that itself.
Can you please provide me with the sytax which can achieve this?
Regards,
Praseed -
Can we use Trunc,Substr in Excel templates
Hi All,
I have a date xml tag with value like "2012/04/01 00:00:00" i need to show this in excel output as "01-APR-2012".
I am using Excel template, need your help to achieve the same.
I tired to use Trunc,Substr,Format date but nothing is working.
Please give me your valuable inputs to solve this issue.
Thanks
RajehsVarma,
Thanks for the reply, i have already checked the link but it doesn't have syntax to use Trunc,substr etc. functions.
Also date in example is - "1996-02-03T00:00:00.000-07:00" , but in my case date format is different "2012/01/01 00:00:00".
Thanks
Rajesh -
How to find a substring in XML-lookslike string?
Hi,
I have a question and wondering if anyone can help me with it.
We have Java tool that does a string replacement inside another string (that is actually an XML request). It works fine when searching for a simple substring (that exists within 1 line of the XML string).
But when I'm trying to find and replace a substring that covers more then 1 line of XML request - it does not work. And I'm not sure what is wrong or (more importantly) how to make it work.
There is no return or new-line chars seen in the XML request.
To make it more clear - here is what I have and trying to do:
<a>
<a>
<b>
<c>
<d> </d>
<c>
<c>
</c>
</c>
</c>
</b>
</a>
</a>
If I'll seach for either <c> OR </c> OR <d> </d> it all works fine ... BUT if Itry to find
</c>
</b>
which will be copied directly from the XML request and past into field - thus it will look like this (horisontal line instead of vertical) </c> </b> - it does not workqavlad wrote:
But when I'm trying to find and replace a substring that covers more then 1 line of XML request - it does not work. First statement - "more than 1 line"
There is no return or new-line chars seen in the XML request.Second statement.
There is no way that I can understand what you meant in your first statement in terms of your second.
If there are no end of line characters at all then there is only one line. Period.
If there are end of line characters, of any kind, then that would really suggest the source of the problem. -
HFR - Getting the value from a member prompt to render in a report
I have need to see the value or values selected from an HFR report prompt on the report once the report renders.
The prompt value is desired to be placed in the Header of the report but ultimately as long we can see the prompt value rendered/placed any where on the report that will be good.
Is there a function or other means to capture the selected dimension value stemming from a prompt selection?
The more complex piece to this questions is that the row member where the prompt resides is using an advanced member selection which takes the value of the member prompt AND the Lev0 list of members to display on the report. Doing the level 0 "AND" of the advanced member selection removes any chance of getting the original prompt value select.
If any one has any ideas or tried and true techniques, please share.
Thanks in advance.
Cheers,
Christian
http://www.artofbi.comHi Christian
It sounds like you are familiar with the text functions that can get you member names / aliases from cells.
Have you thought about retrieving the member from the prompt and then simply hiding the column/row,
e.g. in column A select 'Prompt for Dim'
in column B select 'Descendants of Same Member as Col A' AND 'Level 0 Dim'
hide column A
use the text function to get you the name/alias from column A
Hope this helps
Stuart -
Hi All,
i am a comma seperated values into a variable. below are the values.
"1234567,3,124567,3,14"
the length of the values can vary. eg the output can also be
"123,3,124567,443,1224"
I need to get each value and store it a separate variable. is it possible using substr..?
Please help me out...Hi,
Here's how you can split a delimited list into parts in Oracle 9:
WITH got_part_cnt AS
SELECT pk
, csv
, 1 + LENGTH (csv)
- LENGTH (REPLACE (csv, ',')) AS part_cnt
FROM table_x
, cntr AS
SELECT LEVEL AS n
FROM ( SELECT MAX (part_cnt) AS max_part_cnt
FROM got_part_cnt
CONNECT BY LEVEL <= max_part_cnt
, got_pos AS
SELECT p.pk
, p.csv
, c.n
, INSTR ( ',' || p.csv
, 1
, c.n
) AS start_pos
, INSTR ( p.csv || ','
, 1
, c.n
) AS end_pos
FROM got_part_cnt p
JOIN cntr c ON c.n <= p.part_cnt
SELECT pk
, csv
, n
, SUBSTR ( csv
, start_pos
, end_pos - start_pos
) AS item
FROM got_pos
ORDER BY pk
, n
;Pk is the primary key of table_x. If you don't need it, you can omit it.
Of course, this will work in versions later than 9, but you wouldn't want to if you could use REGEXP_SUBSTR. -
How we get all string from substring,.,.
Hi,
I am doing one application . In that i have to enter substrubg in search user inputfield and then i click on search . Not i want to show all user which contain that substring . So please guide in that.
Example...
Like i am writing "ab*" then all users comes which contain ab substring.
Regards,
Gurprit BhatiaHi,
Try this logic.
String searchString="ab*";
searchString=searchString.subString(0,searchString.length-2);
String[] matchedArray=new matchedArray(100);
int j=0;
//Let your compare strings be in an array strArray
for(int i=0;i<strArray.length;i++){
String temp=strArray<i>.subString(0,searchString.length-2);
if(temp.equals(searchString)){
matchedArray[j]=strArray<i>;
j++;
Then display the matched String array.
Hope it helps.
Regards,
Srinivasan Subbiah -
Hi,
I have a table tablea where a column stores values like ABC LTD,BCD LTD,CEF LTD,DEFEF LTD.
I want the output as
ABC,BCD,CEF,DEF
i have used substr but could not frame the result as the last value stores DEFEF so culd not do substr(1,3) from the table
Any help will be needful for me
Edited by: user13443042 on Jan 26, 2011 2:31 AMYou mean like this?
SQL> ed
Wrote file afiedt.buf
1 select trim('.' from replace('ABC LTD,BCD LTD,CEF LTD,DEF LTD.',' LTD'))
2* from dual
SQL> /
TRIM('.'FROMREP
ABC,BCD,CEF,DEF
SQL>However, it looks like your data structure is wrong. You shouldn't store multiple values in a single string in a colulmn. These should be multiple records or multiple columns as appropriate. -
HFR Range from and to - Not working correctly for hierarchies?
Hi All,
Can anyone help me with my below issue relating to ranges in Oracle’s Hyperion Financial Reporting Studio tool.
The issue I’m experiencing is that when I create a report and use the ‘Add Relationship’ -> ‘Range’ option for my month dimension, the correct months are returned as long as the start month and end month are not the same.
In our setup we have 2 month hierarchies, one for the fiscal year (July to June) and another for the calendar year (January to December). The problem that I’m noticing in the report, is that when I enter a range from July to July, that instead of returning July, it returns July, August, September, October, November, December, January, February, March, April, May, June, July. My though it that it is looping through both the fiscal and the calendar hierarchies to return the range, instead of only the fiscal hierarchy. Both these hierarchies have the same members, however ordered differently.
Does anyone know of a way to resolve this within HFR?
I noticed that when creating the range, there is an option to ‘select a hierarchy’. At the moment there is only 1 choice ‘ Period’, however I’m curious if I could create and link a hierarchy to the fiscal hierarchy, that this might resolve the problem?
Any ideas?
Thanks,
LanceHi Lance,
IIRC Range uses the first (main) hierarchy - so you'll need to move the Fiscal year one to be first in the outline.
Cheers, Iain -
11.1.2.1 HFR Studio backwards compatibility with 9.3.1?
We're currently working through a migration upgrade from 9.3.1 to 11.1.1.3 to 11.1.2.1 and plan to run through a couple of months of parallel testing before going live.
I've seen that the 11.1.2.1 Smartview has some backwards compatibiility with 9.3.1, but I'm trying to verify if we could install and use the 11.1.2.1 version of HFR Studio to manage both reporting environments (9.3.1 & 11.1.2.1) during the parallel phase.
Anyone with any experience on this topic?According to the support matrix, FR Studio 11.1.2.1 only supports 11.1.2.1 Essbase, Planning and HFM database connections:
http://www.oracle.com/technetwork/middleware/bi-foundation/oracle-hyperion-epm-system-certific-131801.xls
Cheers,
Mehmet -
How to use substr in external table defnition.
Hi All,
Im using oracle 11g. I have an external table which is reading data from a file. For one of the column, i need to get only the first 250 characters. My external table defnition looks like this
create table tbl_substr
( col1 varchar2(20),
col2 varchar2(250)
organization external
( type oracle_loader
default directory XXXX
access parameters (
records delimited by newline
FIELDS TERMINATED BY '|'
missing field values are null
( col1 ,
col2 "substr(:col2,1,250)"
) ) location ('file.txt') )
reject limit unlimited
But this defnition gives an error when i do select * from tbl_substr
I want to use substr in external table defnition its self and not in SELECT. Also i dont want to crete a view to solve this. If anyone has done this please help.You need to play with COLUMN_TRANSFORMS
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_params.htm#sthref1792
BTW, i too got it from Google. I was not aware about this :)
Amardeep Sidhu -
How to select a substring in oracle up to a more than one specific character
How to select a substring in oracle up to a more than one specific character
for ex : 121.051^NP: FAMILY PRACTICE ( trim the values before ^ )
121.051^*NP: FAMILY PRACTICE (trim the value before *).
with below function I can only get rid of ^ , I want both the specific characters ^ and ^* to be removed at the same time.
SUBSTR(p.phys_sub_grp_2_desc,INSTR(p.phys_sub_grp_2_desc, '^') +1)Another option is to boldly replace 'em:
SQL> with t as (
2 select '121.051^NP: FAMILY PRACTICE' str from dual union
3 select '121.051^*NP: FAMILY PRACTICE' from dual
4 )
5 --
6 -- actuel query:
7 --
8 select substr( replace(str, '*')
9 , instr(replace(str, '*'), '^')+1
10 ) str
11 from t;
STR
NP: FAMILY PRACTICE
NP: FAMILY PRACTICE
2 rows selected. -
How to use a parameter field value as a substring in a "like" statement?
Hi all,
I'm trying to use a parameter field in a Record selection formula where the parameter field value would be a substring of the data stored in the field.
My parameter field (SlctResearcher) is constructed as follows:
Type: string
List of Values: static
Value Field: (Reports) RptAuthors
(in Value Options) Allow custom values?: True
{Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
{Reports.RptAuthors} like "*{?SlctResearcher}*"
When I hit F5 to generate the data, I get no results (and the parameter prompt field does not even come up...)
If I modify the formula to put a hard-coded string, like
"*Jones*"
after the 'like', I get results (all the reports where "Jones" is a substring in the RptAuthors string.) If I modify the formula to just use the parameter field without the quotes/stars like:
{Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
{Reports.RptAuthors} like {?SlctResearcher}
I do get the parameter prompt field, but still no results even if I put in a valid substring value (since it is not searching for a substring anymore...)
How can I do this?
Thanks,
Will1st thing... Make a copy of your report before doing anything!!!
To use a SQL Command, you'll want to open the Database Expert and look at the Current Connections. Expand the data source and the 1st option you see is the Add Command option.
To find the SQL That CR is currently using, choose Database from the menu bar and select Show SQL Query...
You can copy this and paste it directly into the command window. (If you you can write your own SQL you don't need copy CR's, it's just an option.)
You'll also want to take not of any parameters that you have, you'll need to add them the the Parameter List of the command as well... be sure to spell them EXACTLY as they are in the design pane.
Anyway, once the SQL statement is in the Command window you'll be able to alter the WHERE clause to use the wild cards.
For future reference... What type of database are you reporting against???
Jason
Maybe you are looking for
-
IPod Classic album artwork gone in new iTunes display board as of 1 Dec 2012
Now that I installed the new iTunes software and connect my iPod Classic the album artwork display in the bottom left corner has disappeared! There are other new features on this new iTunes layout that annoy me! Apple...please go back to your previou
-
HP Laserjet 2840 - Need printer parts (hinges)
I need to buy parts for my HP Colorjet 2840. The parts are hinges, and i don't know where to look. I can't get help from HP without paying for support because this was purchased in 2008 and warranty has ran out. Any suggestions??
-
ORA - 01012 during the install of 8.1.5 on solaris 2.6
Hi There, I am trying to install oracle 8i on Sun Solaris 2.6 system using OUI. During the installation and while creating the database using DB configuration assistant, i am getting error ora -01012 Oracle not logged on, i have selected ignore and c
-
More than one, OneToOne relation gives problem
This is my bean class structure @Entity @Table(name="TBL_PRODUCTS") public class TblProducts implements Serializable @Id @Column(name="PRODUCT_ID") private BigDecimal productId; @Column(name="PRODUCT_NAME") private String product
-
Illustrator File Previews are gone Since updating to CC 2014
I know that this has been a problem with previous versions of Illustrator as well, but I am still unsure if there is any fix that I can do on my end or not. I use to be able to preview all of my .ai files with Windows Explorer in Windows 7 Pro 64-bit