Auto mdx script creation
Hi I am new to MDX and am looking for a quick way to create an MDX scriopt. I have used Visual Explorer to create a report, how do I extract the MDX script?
The reason I need to do this is to create a custom query in OBIEE (10g) that make use of the output from this script.
Thanks.
Hello,
the major disadvantage acc to me is that , there is no independent check on the excise values in the invocie, if there are any errors, or values are incorrect , then the excise invocice nad has to be recreated
if the checks are in place in invoice stage, there should not be a issues
also if the values are fixed , standardised then also it helps to have auto invocie creation
hope this helps
Thanks
akasha
Similar Messages
-
MDX script editing error generated at each keystroke
I'm having the same issue in VS2012. When I edit an MDX script the error window pops open between each keystroke. I have to copy the script into notepad, edit, then return it to the MDX editor. Very annoying!!!
Actually I get it in the Calculations tab of SSAS 2012 while inside Visual Studio 2012. I can toggle back and forth between script view and form view without error (and the build is clean), but when I start to type anything in form view it pops up the error
window between every single key stroke.
I've looked for options to turn off automatica error checking but don't see anything like that.
chris choate
Hi Chris,
Could you please post the detail error message to us for further investigation? If possible, please post a screenshot about this issue.
Personally, you can try to reinstall Business Intelligence for Visual Studio 2012 to see if this help.
Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012:
http://www.microsoft.com/en-us/download/details.aspx?id=36843
Install SQL Server Data Tools - Business Intelligence for Visual Studio 2012:
http://technet.microsoft.com/en-us/library/jj856966.aspx
If you have any feedback on our support, please click
here.
Best Regards,
Elvis Long
TechNet Community Support -
Hi all
I have a date dimension that (type time) with attributes
- [FiscalYear] (type years)
- [FiscalMonth] (type months)
- [FiscalWeek] (type weeks)
In addition to the attributes used in the natural hierarchy, I have an attribute [PerType] containing one member comming from the relational table 'WTD' which corresponds to 'Current Date'. All other members of this attribute hierarchy are calculated members (defined in the MDX script). Examples:
--Last year
CREATE MEMBER CURRENTCUBE.[Date].[PerType].[LY] AS NULL,
VISIBLE = 1;
SCOPE([Date].[PerType].[LY]);
SCOPE(DESCENDANTS([Date].[Fiscal].[All], [Date].[Fiscal].[Year], SELF_AND_AFTER));
THIS = ([Measures].CurrentMember, [Date].[PerType].[WTD], ParallelPeriod([Date].[Fiscal].[Year], 1));
END SCOPE;
END SCOPE;
--Month to date
CREATE MEMBER CURRENTCUBE.[Date].[PerType].[MTD] AS NULL,
VISIBLE = 1;
SCOPE([Date].[PerType].[MTD]);
SCOPE(DESCENDANTS([Date].[Fiscal].[All], [Date].[Fiscal].[Week], SELF_AND_AFTER));
THIS = Aggregate(CrossJoin({[Date].[PerType].[WTD]}, MTD([Date].[Fiscal].CurrentMember)));
END SCOPE;
END SCOPE;
--Year to date
CREATE MEMBER CURRENTCUBE.[Date].[PerType].[YTD] AS NULL,
VISIBLE = 1;
SCOPE([Date].[PerType].[YTD]);
SCOPE(DESCENDANTS([Date].[Fiscal].[All], [Date].[Fiscal].[Period], SELF_AND_AFTER));
THIS = Aggregate(CrossJoin({[Date].[PerType].[WTD]}, YTD([Date].[Fiscal].CurrentMember)));
END SCOPE;
END SCOPE;
The defalut member of FiscalWeek attribute hierarchy is set dynamically in the MDX script:
ALTER CUBE CURRENTCUBE UPDATE DIMENSION [Date].[FiscalWeek], DEFAULT_MEMBER =
Filter(
[Date].[FiscalWeek].Members,
[Date].[FiscalWeek].Properties( "FiscalWeekStartDate", TYPED) <= DateAdd("d", -2, CDate(CStr(Month(Now())) + "/" + CStr(Day(Now())) + "/" + CStr(Year(Now()))))
AND
[Date].[FiscalWeek].Properties( "FiscalWeekEndDate", TYPED) >= DateAdd("d", -2, CDate(CStr(Month(Now())) + "/" + CStr(Day(Now())) + "/" + CStr(Year(Now()))))
)(0).PrevMember;
If I run the following query:
with member
measures.x as [Date].[Fiscal].DefaultMember.Name
measures.y as [Date].[FiscalWeek].DefaultMember.Name
select
measures.x,
measures.y
} on axis(0)
from [GLWeekly]
it gives me back correctly the default member set over the MDX script.
I order the statements in the MDX Script so that the default period (week) is set at the beginning of the script (just after the calculate).
I do not understand why creating the following calculated member I am obliged to specify [Date].[Fiscal].CurrentMember in the tuple to have correct results:
MEMBER [Account].[CoA].[Standard Engagement Revenue (MTD)] AS ([Account].[CoA].[Standard Engagement Revenue], [Date].[PerType].[MTD], [Date].[Fiscal].CurrentMember)
I would expect that:
([Account].[CoA].[Standard Engagement Revenue], [Date].[PerType].[MTD])
is sufficient.
If the default week is specified in the slicer using a member of the natural hierachy (=> [Date].[Fiscal].x) it works.
Why can't SSAS use the default member if it is must defined in the MDX script?
Can someone explains me this. Thanks a lot in advance.Hi Ina,
have you thought about adding a dynamic statement inside the MDX script? You could define the default member like this:
... DEFAULT_MEMBER = iif( Day( Now() ) = 3, <expression for previous month>, <expression for current month> );
This way you don't need to change it everytime by running a script.
By the way, what do you mean it doesn't update the default member? When you execute this MDX what does it says?
with member measures.x as [Dimension].[HierarchyName].DefaultMember.Name
select { measures.x } on 0 from Cubename
If this returns the correct name, then the problem is somewhere else. I believe it should return you the correct name. Look here, test this on Adventure Works, statement by statement and see what happens.
ALTER
CUBE [Adventure Works]
UPDATE
DIMENSION [Product].[Product Categories],
DEFAULT_MEMBER = [Product].[Product Categories].[Category].&[1]
with
member measures.x
as [Product].[Product Categories].DefaultMember.Name
select measures.x on 0
from [Adventure Works]
ALTER
CUBE [Adventure Works]
UPDATE
DIMENSION [Product].[Product Categories],
DEFAULT_MEMBER = [Product].[Product Categories].[All Products]
with
member measures.x
as [Product].[Product Categories].DefaultMember.Name
select measures.x on 0
from [Adventure Works]
I think you can see which members are default (on related hierarchies) using
MDX Studio. This should help you detect which attributes have not moved accordingly and hence cause problems in your report. The usual suspects are those attributes used in your last month reports. If that's too much for you, just copy paste the definition
of the measure x and use .CurrentMember instead .DefaultMember. And so for all related hierarchies of your dimension. You can run it as one query, just put enough measures (x1, x2, ...), one for each hierarchy, ok?
Here's a test for Day():
with
member measures.y
as
iif( Day(Now()) = 28, 'Yes', 'No' )
select
measures.y on 0
from [Adventure Works]
Today this returns Yes, tomorrow it will be No.
Ups, I just checked one more thing. When you run the script, it sets the default member only for that session. If you execute the first two of the four statements that I've sent you, it will set the default member on Bikes and show you that.
But, if you open another query windows and execute that select statement (only), you'll see All member instead. So, it has set it to Bikes only for the currect session. Consequence? You reports are not aware of it. So, better use dynamic statement in
your MDX script.
Regards,
Tomislav Piasevoli
Business Intelligence Specialist
www.softpro.hr -
How to extract Member Names in MDX script?
I have a MDX script that by default gives me member aliases. How can I change it so it'd give me member names? I know I can use something like that:
NON EMPTY [Employee].Levels(0).Members DIMENSION PROPERTIES [Employee].[Member_Name]ON AXIS(4)
but then it gives me member aliases AND member names, and I need the names only.
Thanks!The syntax you have is the way to get the member names, but as I said you wouldn't like the way it is displayed. MDX is not a reporting language and so it does not have the nice formatted selections. You will get both alias and member name by using the properties. you could run the output through some sort of parser (Perl perhaps) to get the format you want
-
MDX Script for Caluclate total year
Hi ,
I need to calculate total year for actual and forecast data in essbae aso cube .Already we have MDX script for calculate actual and forecast .and now we need to calculate total year .
Kindly any one can help me on this .
Script we used :
Case
When CurrentMember ([Years]) is [FY06] Then ([Scenario].[Actual],[Version].[Final])
When CurrentMember ([Years]) is [FY07] Then ([Scenario].[Actual],[Version].[Final])
When CurrentMember ([Years]) is [FY08] Then ([Scenario].[Actual],[Version].[Final])
When CurrentMember ([Years]) is [FY09] Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Jan]) Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Feb]) Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Mar]) Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Apr]) Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [May]) Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Jun]) Then ([Scenario].[Actual],[Version].[Final])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Jul]) Then ([Scenario].[Current Forecast],[Version].[Working])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Aug]) Then ([Scenario].[Current Forecast],[Version].[Working])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Sep]) Then ([Scenario].[Current Forecast],[Version].[Working])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Oct]) Then ([Scenario].[Current Forecast],[Version].[Working])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Nov]) Then ([Scenario].[Current Forecast],[Version].[Working])
When (CurrentMember ([Years]) is [FY10] AND CurrentMember ([Period]) is [Dec]) Then ([Scenario].[Current Forecast],[Version].[Working])
When CurrentMember ([Years]) is [FY11] Then ([Scenario].[Current Forecast],[Version].[Working])
When CurrentMember ([Years]) is [FY12] Then ([Scenario].[Current Forecast],[Version].[Working])
Else
Missing
End
In above script Jan to June is actual data and Jul to Dec is forecast data .now we need write MDX script for calculate total years .
We have substitute veritable is Endmost for actual and startMo for forecast .can we use these variables in script?
i am trying below script but i am getting some errors :
case
when (currentmember([Years]) is [FY10]) then
sum(crossjoin{(([Scenario].[Actual]),([Version].[Final])),([jan],[Feb],[Mar],[Apr],[May],[june])}+
sum(crossjoin{(([Scenario].[Current Forecast],[Version].[Working])),([July],[Aug],[Sept],[Oct],[Nov],[Dec]))}
end
is this script is correct and also let me know how we can use substitute veritable in FASO MD scripts.
Thanks,
viYes. That makes sense to craete a calculated member( say FYF) and apllying the logic you have told.
Can see the required result at the total year level.
And it is always better not to change the actulas and forecast cosolidation at the total year level. -
Hi Experts,
I have a query with MDX Script Logic
The sum of values (ABC) move to total in one region ,like different regions sum of values adding in TOTAL.How to define in MDX script and sgrigate diferent regions
ACCOUNT.Total=ACCOUNT.A,ACCOUNT.B,ACCOUNT.C (CA region) (Logic for CA)
Total=A=BC(CaliforniaNewjersyOhio) (the same logic for different regions)
The INPUT of values goes individual to region and total will come overall,
Regards
Ravi<blockquote>quote:<br><hr><i>Originally posted by: <b>tiger23</b></i><BR>New working with MDX. I have a MDX script but would like to write the output to a text file. Can anyone help me with this?<BR>thanks....<hr></blockquote><BR>The quickest way to do this is to use MAXL to submit the script and the MAXL "spool" commands to redirect output. The Technical Reference in Help has the details on the use of "spool".<BR>
-
Hi Team,
How can I check whether the auto startup script is scheduled for the database after the server reboot
OS version:Linux server1 2.6.18-194.11.1.el5 #1 SMP Tue Jul 24 05:45:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
DB version :11.2.0.2
/etc/oratab entry is set to Y.
But the database did not startup after the server reboot. How to verify that the auto startup script is available?http://www.oracle-base.com/articles/linux/automating-database-startup-and-shutdown-on-linux.php
HTH
Anand -
Hi all
I have done following setting for auto excise invoice creation
A) Maintain excise group : Checked excise invoice during billing : Check box flaged
B)Define accout in account detrmination : If We create it manually perfectly working
C)business transaction : outgoing excise inovice : add one entry for sale area IN01/01/02 shipping point : INVE & Plant : PVVE ,excise group : EV & excise series ES & export colulm kept blank beacise this domestic sale area
But after creating billing document ( t_code :vf01 doc_typ: F2) excise invoice is not genrated automatically .
Reques you all to suggest why excise inovice is not created ?Hi
You will have to maintain Default Excise Group and Series Group in IMG> LO General>Tax on Goods Movement> India>Business Transaction>Outgoing Excise Invoice>Maintain default Excise Group and Series Group.
Also Maintain the Assign Billing Type to delivery Type. IMG> LO General>Tax on Goods Movement> India>Business Transaction>Outgoing Excise Invoice>Assign Billing Type to delivery Type.
Maintain it and then try to create.
Regards
Amitesh Anand -
Any idea why ichat 5 gives me an error on the auto accept script every time I run it ? I want to leave the auto accept on permanently but its not letting me.
Click on the App in Applications.
Do a Get Info from the File Menu of the Finder (or the keystrokes listed)
If you have a Core 2 Duo Processor it will offer the option so start in 32 Bit mode.
10:50 PM Tuesday; September 22, 2009 -
Hi , I am trying to develop an MDX script to clear data from a region/slice in ASO cube. I have to select only certain projects with a similarity in their name. I could not find any key word for that , So I have added a UDA for those projects and used the UDA keyword to group them. The script is below:
alter database BSC_RPT.BSC_RPT Clear data in CurrentTuple( [Scenario].[Actual], [DataView].[datasource], [Years].[FY11],
[Version].[Current], [Account].[Accountname] ,(Uda ( [Project], "PLN")))
This script gives me an error "Syntax error at 'Current Tuple'. Please suggest me how to proceed with this. It would be of a great help if you can help me resolve this issue.
Thanks,
Ramy969637 wrote:
Hi , I am trying to develop an MDX script to clear data from a region/slice in ASO cube. I have to select only certain projects with a similarity in their name. I could not find any key word for that , So I have added a UDA for those projects and used the UDA keyword to group them. The script is below:
alter database BSC_RPT.BSC_RPT Clear data in CurrentTuple( [Scenario].[Actual], [DataView].[datasource], [Years].[FY11],
[Version].[Current], [Account].[Accountname] ,(Uda ( [Project], "PLN")))
Since the UDA function can return multiple values, you cant use a tuple for this, you would have to crossjoin the set of members of the UDA with the tuple of the other dimensions. You would also not use the currenttuple just the tuple itself
something like 'crossjoin ({( [Scenario].[Actual], [DataView].[datasource], [Years].[FY11], [Version].[Current], [Account].[Accountname]),({Uda ( [Project], "PLN")}))'
Note, I did this offhand the syntax may be a little off ot parens and brackets might be off as well -
HI
what are the disadvantages in making auto excise invoice creation when billing is savedHello,
the major disadvantage acc to me is that , there is no independent check on the excise values in the invocie, if there are any errors, or values are incorrect , then the excise invocice nad has to be recreated
if the checks are in place in invoice stage, there should not be a issues
also if the values are fixed , standardised then also it helps to have auto invocie creation
hope this helps
Thanks
akasha -
Hi Experts,
I Need The Below Calculation Script convert to mdx script format
If (@IsLev("Entity",0))
"Start Point (a.)" = "Start Point (a)"->@PARENT("Entity")->"Total Products"->"Total Customers"->"Total Vehicles";
EndIf
I tried The Below Script Shows Syntax error
CASE WHEN IsLevel([Entity].CurrentMember, 0)
THEN [Start Point (a.)] =([Start Point (a)],[Total Products],[Total Customers],Parent([Entity]))
END
Thanks & Regards
BalaziDidn't you ask this question yesterday?
Calc script to MDX script conversion
As it is ASO, there are no CALC DIM or AGG statements required. You can materialize aggregations, i.e., have Essbase calculate aggregations if you want. The easiest way to do that is through the Aggregation Design Wizard in EAS. You can also define this in MaxL. Alternatively, and I would guess for the initial design process you would likely not materialie any aggregations at all but instead let Essbase calculate the database dynamically (okay, I'm sure I will get a million "You are wrong again, Cameron" comments but I'm just as much of a neophyte as you at ASO and that's what I would do during my coding process -- it does work for checking numbers but may not be fast enough for production use.).
Re clearing the data, see the MaxL alter database clear aggregates/data in aggregates command:
http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_altdb_as.html
Sorry I forgot to mension that we are using EPM 11.1.2 in which we can use calc script for only Level 0 blocks. ^^^Not sure what this means.
Regards,
Cameron Lackpour -
Error in connecting SAP R/3&Load Runner thr' recording for script creation
Hi SAP Gurus!!
I am New to SAP environment.
I got the following Error
" Scripting Interface is disabled on SAP Server"
No action can be recorded on this connection.
What I try to do is:
I tried to connect the SAP R/3 (4.77 EE- IDES environment) through Load Runner (8.1 evaluation version) through recording for creating a script.
What I did at load runner :
Start Creating Script by by pressing "start recording" by giving the following options
Program to Record : SAP logon
Working Directory :C:\Program Files\SAP\FrontEnd\SAPgui
Record into action : vuser_init
and in options : enable the Auto logon by providing the details of
SAP Server name,client,username,password and language.
By pressing OK button I got the above error and it was trying to connect the SAP.
If i give manually again logon details it is loging in to SAP but it is not recording any thing.
Can any body help in this regard?
Thanks in advance
Regards,
Vam CHi HP
Was wondering if you can help me, I am trying to create a trouble shooting sheet for possible reasons why sap scripting fails to connect at some of our clients. We write a screen reader that consumes the sapfewse.oxc, I have implemented this in C sharp and have great results. However I constantly getting support issues that my screen reader fails to connect.
Often the problem is fixed by just enabling Scriping on the client or using RZ11, I noted that you seem to indicate, however that RZ11 is short term solution and you mentioned a permanent change.
Can you please give details on the permanent change and how one can achieve this. Could you also list any other possible reasons why connecting to scripting might fail. I will be happy to mail you my connection code for a peer review as well, I would feel more comfortable with expert stamp of approval.
Thanks
Shaun,
Your help will be much appreciated, -
Hi,
I am trying to write in mdx editor the following query which will give me previous month date.
SELECT
+{(DateRoll(today(),DP_Month,-1),jan)} on COLUMNS+
+from [sample.basic]+
But it gives syntax error. I checked DateRoll function and Today() function in calc script and it was shifting my date to previous month.
Please have a look.
Thanks in advance
Edited by: user10760185 on Jun 21, 2012 12:09 AMYou're mixing Dates and Members. DateRoll function will only work with a 'Date-Time' dimension which is a special type of Time dimension you build with the EAS wizard and only for ASO databases.
-
Auto clicker script constantly running cant close it help!!
i tried to get auto clicker for my mac, to play minecraft and i set it on the script to click 10 times a second. now it wont let me click on the mouse or use the keyboard. i have tried turning it off and back on a few times and still nothing all i want to know is how to stop the script and let me play minecraft
restart your computer? How did you set the script to start?
Maybe you are looking for
-
Problem in creating a model window
Hi, I am trying to open a window on the click of the button and I am getting the following error Parameter windowInfo must not be null. this is the code i wrote to open the window IWDWindow excelLinkWindow; try{ wdThis.wdGetAPI().getCo
-
VSTO: How to set line break in Ribbon Xml?
Hi All, I have a button in Ribbon.xml. it looks like: <group label="myLabel" id="View"> <checkBox id="cbView" label="ViewViewviewviewview" getPressed="cbView_Pressed"/> </group> The result is shown as: The checkbox is too lo
-
Putting my music on an MP3 player. HELP!
I'm a new user to ITunes and I cannot figure out how to put my music on the MP3 Player. Can someone please help me figure this out? Much Appreciated.
-
Solution Mgr installation problem in Window platform.
Hello All I had successfully installed Solmgr 4 Sr2 in HP-UNIX but got the following error in the Window platform. I followed the exactly all all the steps in guide but the following error. <i><b>Any suggestion please , Did i missed. any step </b
-
ALV Cannot change Column Width in Field Catalog
Hi, I have an ALV report where I want to specifically set the field widths of the columns because some of the standard domain lengths are very large (e.g. 255 chars). I am building the field catalog like this: CLEAR gs_fieldcat. gs_fieldcat-col_p