How to compare substitution variable name to static member names (not data)?
Is there a way to write a BSO member formula that compares a substitution variable against the name of a static member (not the data value of the member)
For example, I have a BSO database that has the sub variable &CurrMth (which is set the real current month), and I am trying to use it in the Q1/Q2/Q3/Q4 member formulas
IF(&CurrMnth <> "Jan" AND &CurrMnth <> "Feb")
"Mar";
The intention of the above is: if &CurrMnth is neither Jan nor Feb, then the Mar value will be used. However, the system is actually comparing the values of &CurrMnth and Jan/Feb, rather than the names/text string of "Jan"/"Feb".
I have been looking around the tech references, but I was unable to find any functions that will compare the text strings of member names as they all appear to compare against the data itself.
Please let me know if there are any ways to compare the member names themselves in a member formula, not the data values.
Thanks!
Thanks Celvin, that looks like it works!
However, I do need to do the same function in the equivalent quarter members in our ASO cube as well. Do happen know know if there's a similar MDX function I could use in the ASO cube to acheive the same result? I was using the following to achieve this in ASO (which obviously did not work):
IIF([Time Periods].[Jan] <> &CurrMth AND [Time Periods].[Feb] <> &CurrMth,
[Mar],
Similar Messages
-
How to compare 2 different database to get table name which are not present in second database
How to compare 2 different database to get table name which are not present in second database
Sorry cannot test it right now
use db1
go
select * from sys.tables t where not exists
(select * from db2.sys.tables s where t.object_id=s.object_id)
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How can I fix the 1st column width (member) in Planning data forms
Hi all,
does anybody know a trick, how I can fix the first column width in planning data forms? I need a composite data form (Planning 9.3.1) and the problem is, that in the first form the member names are longer. So Planning sizes the column as it is needed to display the full member name. The member names of the second data form are shorter, so the data entry cells are not exactly among each other for both data forms and that looks terrible....
Thanks and kind regards
AndréThere are 3 ways of setting the width in webforms:-
1. There is a global setting for input box length which has a syntax of FormInputBoxLength=30.
2. When you specify the format for each of the dimensions you can choose to select the width of either a column heading or a row heading. In the following example, each time you specified the dimension ‘Account’ a format would be applied to its header. The syntax for this would be something like… HeaderOptionAccount=Length:50,Style:font-size: 12pt;font-family: calibri
3. Each column can have its own width specified. The syntax for this can be setting in each of the column’s code. For example C6=Blank,Style:Background-color:rgb(203,218,231);width:3 would just show a thick vertical line as the width is so small.
You can not set widths in data grids through the normal settings. You can manually change the widths and save the grid though. This can be done in the xml directly. For example… <HDRWIDTH idx=”0″ width=”50″/>.
Then load the amended xml file back into the system. -
How to COmpare two variable in BPEL
Hi ,
I have two compare two variable ( EIN field ) one from input variable of a BPEL process and other one the output variable of a invoke .
My requiremet is like this :
If the the value of both EIN field is same then I have to assign Name field of Invoke output parameter to Output variable of BPEL process .
If the value doesn't match then i have to assign ' No Data Exist ' expression to Output variable of BPEL process .
How can i do this .
Please help me regarding this as early as possible .You can do this in a switch statement. Perform a comparision to check if the values are the same, if case is not important (because users will enter anything) wrap the code in a case expression, e.g. upper(user_date) = upper(file_data)
What version of SOA Suite and JDev are you using. Make sure that these versions are in sync.
cheers
James -
How to use substitution variables in Microsoft Word using Hyperion Smart view
Can we use Substitution Variables in copy data points and refresh in Microsoft Word? I tried it and it does not work dynamically (copy data points only copies what was in excel cell at that point). It only copies the static value of that variable from that cell. I want to use it dynamically in Word so that if I change the value of that variable in Essbase, it is updated in Word upon refresh. Any idea??
We need this feature for reporting in microsoft word and keep using the data points every year (instead of copying the cells from excel over again)
Any help/suggestion is appreciated.
Thanksyou can't use substitution variables with copy data points. I had tried a while ago (post 111.1.2.1.102) and it wouldn't work. I checked with Oracle development and they said it I not available
-
How to use substitution variable in case of dim build
Hi all,
Lets say I have 3 sub vars - Prevmonth, prevmonth-1, prevmonth-2. These will change every quarter.
I want to build a cube which will have which will have only the above 3 months in the Fiscal dimension. This will be used once at the end of quarter.
How do I refer substitution variables in case of dim build rule files? I want automate the process. We have SQL dim build for other dims, only this dim can be built from flat file also.
Or is there any other way to achieve this apart from using sub vars? I can try store the 3 variables in a table and then use them to build the cube, but want to see if we can avoid creating one more interface.
Thanks.Actually using the values of subvars to build a dimension (which I believe is what you want) is a fun problem. Here's an (Oracle) example that would do that, without requiring any additional table or flat file:
SELECT 'FiscalPeriod' AS Parent,
CASE Level
WHEN 1 THEN '&CurrMonth'
WHEN 2 THEN '&PrevMonth'
WHEN 3 THEN '&PrevMonthMinusOne'
END AS Child
FROM Dual
CONNECT BY Level <= 3
Here's how it looks in the load rule SQL dialog, and the data prep editor:
It's fun because I've never thought about it before, but I don't actually recommend this - if you have other ETL going on in SQL I'd generate the values in a table / view there, and have a script that both updates the subvars and builds the dimension direct from that. -
How to prevent substitution variable recognition?
Hi, is there any way to prevent the recognition of substitution variables in a SQL worksheet? For example, I would like to run the following query in SQL Developer 2.1.1.64:
SELECT UTL_HTTP.request ('http://localhost:8088/foo/servlet/bar?x=10&y=10')
FROM DUAL;Here, '&y' is not a substitution variable but a request parameter. Is there any way to escape the '&' sign? Or any other way to execute this query without substitution variable?
Thanks in advance.
Regards, MarkusTry this
set define offHTH,
dhalek -
How to pass Temp variable value instead of Table name in From clause.
Hi,
I have an requirement to pass the Temperorary variable value instead of Table name in FROM Clause in SQL.
But I am strugglint to pass this variable value.
E.g., a Varchar2(5) := 'aa';
Select * from a;
Here I come to mention a - 'aa'. But the SQL looks for 'a' as Table. But its should look into 'aa' as Table name.
Kindly guide me.
Thanks.SQL> declare
a varchar2 (5) := 'emp';
v varchar2 (100);
cur sys_refcursor;
begin
open cur for 'Select ename from ' || a;
fetch cur into v;
while cur%found
loop
dbms_output.put_line (v);
fetch cur into v;
end loop;
close cur;
end;
JAMES
SCOTT
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
KING
TURNER
ADAMS
FORD
MILLER
PL/SQL procedure successfully completed. -
How to setup substitution variable for CurrYr?
I am trying to setup substitution variable for Curryr. Can anyone provide steps to setup substitution variable?
ThanksAlso look Re: Update variables at this recent thread. JohnGoodwin highlights a good way to get this automated using a batch file
-
How to Update Substitution Variable
Hi All,
we are using Essbase 9.3.1.2. i am trying to create substitution variable using essbase console and i am getting an error as 1051082: substitution variable currmonth already exists however i have deleted all my substitution variables before creating them. When i checked in the backend using maxl i am able to see that the new substitution variable is created (*Currmonth*) however in console when i right click on the server --> edit -> variables i am not able see that variable that i have created.
Can anyone of you help me out...
regards,
Naveen.
Edited by: user12209997 on Sep 13, 2010 11:29 AMAre you sure you're not creating the substitution variable at say, the database level, but are then looking at the application or server level? Or the reverse?
What do you get in MaxL when you type:
display variable all ;
If you set a variable, can you use it in an Essbase retrieve through the Excel add-in? If yes, I'd say the variable really exists and it's EAS that is wrong. There's always the restart of the EAS service to try.
Regards,
Cameron Lackpour -
Hi,
I'm working with an APEX page template - 'One Level Tabs' in my application.
I have copied and extended this template to meet the requirements specified by the client by adding a background image on the page.Also I have added 5 regions on the page,each one with a backgroung image each.These images are all png format and are supposed to be transaparent revealing the background image of the page.However,when I ran the page I noticed that these region images appeared on a white background and did not show the image below.
Is there a way to modify the substitution variables such as #REGION_POSITION_02#,#REGION_POSITION_04#,#REGION_POSITION_05# ,etc. such that the images placed here appear transparent and reveal the back drop underneath?
Would appreciate it very much if anybody could throw some light on the matter.
Regards,
Priya JetleySo this is the kind of thing?
changed the html code in the body of that page template and specified and image as a background to the main html tablePlease post the HTML code (wrap in tags to format properly in the forum).
in the source of the region specified the '<img src' tag
This wouldn't give a background image, but place the image in the region content?
Png format I believe has the ability to be transparent by default.Correct me if I am mistaken.
PNGs can have full transparency set using binary transparency, or full or partial transparency set using an alpha channel. Do you know which has been used? Is transparency apparent when the images are viewed on their own?
Again you are recommended to upload a simple example of what you have done to apex.oracle.com. This is the fastest and most reliable way to troubleshoot this type of issue. -
How to compare SSIS Variable and Column In the table!!.
Hi Folks,
My Requirement IS :
1<sup>st</sup>run: if the record does not exist
in the table insert the record (file_name, last_modified_file_date) and create a copy in the archive folder with file_name_currentdate.csv
Daily run:
retrieve the last_modified_file_date from the input file and check if the retrieved date is greater than the last_modified_file_date in the table:
If true:
create a copy of the input file in the archive folder and update the last_modified_file_date in the table with the retrieved date
If false don’t do nothing because the file has been archived in one of the previous runs.
I have already retrieving the modified date and File Nae iserting into Filename Table: (That table has 2 columns which are FileName and FileDate) so In script task everytime the variable getting Modified date(retrieve the last_modified_file_date
from the input file) could yu please give me idea after that how I can Compre the existing table record and variable. I have already
imported the all Filenames and Modified into table like below.
Could you please give your ideas friends.Try this:
1) Execute SQL Task (In the Parameter mapping, pass filename and fileLastModified date retrieved from the file - your SSIS Variable)
2) In the ‘SQL statement’, Write a TSQL like this:
--declare these variables before the use
SET @filename=?
SET @fileLastModifieddate=?
--declare @MaxLastTblDate and @flag=0
select @MaxLastTblDate = Max(last_modified_file_date) from Table T1
If (@fileLastModifieddate>@MaxLastTblDate)
--Do your insert here
--Update the variable with @flag (say 1)
3) Set the value of @flag in the Result set of Execute SQL (another SSIS variable)
4) In the next control flow component, do the file archiving.
5) Between these two components, check the value of the @flag variable in the precedence constraints (whether to copy the file for archiving or not)
Hope this helps. -
How to use substitution variable in sql
Hai All
I have two tables Rgpmain and Rgpitem the fields are
Rgpmain
unitid,periodid, docno, vendcode ,vendname, part_taken_by and .....
Rgpitem
unitid, periodid, docno, partno, partname .... And i need to give some values in runtime using sub variable
i need to to four values in sub function and i will give one value and i need the result of one variable
The qurey will like this
Select * from rgpmain m, rgpitem i where unitid=1 and periodid=14 and m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and vendcode ='&p_vendcode'
Or
m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and vendname like '&p_vendname%'
Or
m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and partname like '&p_partname%'
or
m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and partno ='&p_partno'
This is my query
And while i am executing there are four options showing to enter..
My need is i need enter only one field Ie vendcode and execute the vendcode like ABC01 then i need the only
the result that belong to vendcode ABC01 but my query giving all the rows
Pls tell me what is wrong with my query
Thanks In Advance
Srikkanth.MHai
Thanks Man i under stood that nv2 if 1 col is null then it will return 2 col or els 1 col but i working with large
database and i need four or five column using sub. Pls tell whats went wrong with my query when i am executing
one by one at the first time its works fine but next time it returns 1000 rows. pls tell me how to use four or five columns
Regards
srikkanth.M -
How to use substitution variables in sqlplus activity of process flow
I have a process flow that does nothing more than create a couple of packages that I cannot successfully deploy from OWB. A workaround, not something that I want to do, but currently there is not much time to adjust the packages so they can be deployed from OWB.
I can successfully create the packages from files that are present in a directory on the server. But the location (directory) is not the same in all cases (OTAP). So I thought to use an input parameter to the process flow (named TELLINGEN) and use that in the sqlplus activity.
I have created the parameter START_PATH with a default value.
I have added an sqlplus activity and placed the following into the PARAMETER_LIST variable of the activity:
?${Target.ConnectString}?@${TELLINGEN.START_PATH}/npl_dbug.pkg?
When I run the process flow I see the following in the output:
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Mar 18 18:10:14 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SP2-0310: unable to open file "${TELLINGEN.START_PATH}/npl_dbug.pkg"
SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
It obviously connects to sqlplus but then cannot find the file. Presumably because the variable has not been substituted.
How can I persuade the activity to substitute the variable?
Kind regards,
Eric.Have been reading around a bit and found the (a) solution:
I placed the following in PARAMETERLIST:
?${Target.ConnectString}?@${Working.RootPath}/base64.sql?
And it turns out ${Working.RootPath} is pointing to the location you can provide under the configure for the sqlplus activity in the process flow. Just as you have to provide the target destination as indicated here: Re: SQLPLUS Activity in Process Flow
From the documentation it was not immediately clear to me where Working.RootPath was pointing to. -
Essbase substitution variable for memebr with '-' in name
I am trying to do subjected assignment. I have a member with '-' in name and trying to assign it to sub.var.
It let me do it in EAS (hit set and it went OK), but not in Maxl--it says syntax error near '-'
Also it is giving me wired errors while validating calc script with this var.
Any idea ?
ThanksIf the value of the subvar is encased in quotes, you don't need to quote it in the fix statement.
&subvar.
Robert
Maybe you are looking for
-
Hey guys, I just got 3 cd length worth of songs from my friend today, and there all in WMA format, is there anyway I can convert these files using iTunes? I also found easyWMA what do you guys think of that program? Message was edited by: Finalblink
-
Passing output to a method, I'm lost!
I want to put all of my "output" including the returns on the three Temp functions in my method DisplayTemperatures, but I'm stuck and don't know how to do this. Please help import javax.swing.*; import java.text.DecimalFormat; public class Temp {
-
I need to know why I cannot download my purchase movies while working abroad. I work in Iraq and before coming over I purchase the Walking Dead Series, but now when the new episodes comes out I cannon download them. Why is that?
-
Huge Word problem after 10.6.2 Update
Hello I have a macbook pro 13" with 10.6.2. I use Microsoft Word 2004 daily and this morning after I updated to 10.6.2 it underlines every word I type as being wrong when the words are perfectly fine. Has anyone had the same experience? What can I do
-
IMac won't connect to the App Store for updates.
I am having trouble with my iMac not connecting via the app store. It says there is no internet connection but I am on the internet with full strength. This occurs whether I am connected wirelessly or direct. I am able to download updates to iTunes