Allocations using MDX in ASO?
Can allocations be done in an Essbase ASO application using MDX calc scripting? If so, is it worth moving to it considering the work involved? It is fairly easy to develop and support in BSO applications. Thanks.
Hi Hiren,
According to your description, you will not select Country, State & City at the same time, right?
So as per my understanding, you needn't to create the hierarchy, just create three attributes Country, State and City. Then when you select one of the attributes in the PowerPivot table, the attribute can be the filter which you can see on the screenshot
below.
Regards,
Charlie Liao
TechNet Community Support
Similar Messages
-
ASO data slice export using MDX
Hi
Can any one help in syntax for exporting data slice from ASO cube using Mdx and Maxl?spool
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_commands_spool.html
ogin test test on test;
Spool on to 'mxlDefectAll.txt';
set column_width 36;
SELECT NON EMPTY {( [Actual])} ON COLUMNS,
NON EMPTY
CrossJoin (CrossJoin ([Product].children, [Market].children),
CrossJoin([Year].Children, [Measures].children))
ON ROWS
FROM Sample.Basic
spool off;
logout;
or use maxl-perl interface
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_perl_examples.html -
Combine two resultset sidebyside in coulmn using mdx
hi i am new to mdx,
i want to combine two select statement resultset (side by side like union) using mdx query,please any body help me to solve this query
first query:
SELECT
{ [Last Year] }
ON COLUMNS,
{ {[Location].[Location].&[7], [Location].[Location].&[12], [Location].[Location].&[11],
[Location].[Location].&[19], [Location].[Location].&[17], [Location].[Location].&[16],
[Location].[Location].&[9], [Location].[Location].&[18] },{[Location].[Location].[All]}}
ON ROWS
FROM [Cube1]
WHERE ( [Measures].[Labour %] )
here [Last Year] is a calculated set
{STRTOMEMBER("[Date].[Month].&["+ cstr(year(now())-2) +"-11-01T00:00:00]"):
(STRTOMEMBER("[Date].[Month].&["+ cstr(year(now())-1) +"-10-01T00:00:00]"))}
2nd query:
WITH MEMBER [Measures].[Budget ] AS IIF(avg([Last Year],IIF(([Measures].[Budget]>0),[Measures].[Budget],null)),
avg([Last Year],IIF(([Measures].[Budget]>0),[Measures].[Budget],null)),0.00),
MEMBER [Measures].[YTD] AS IIF(avg([Last Year], IIF(([Measures].[Labour %]>0),[Measures].[Labour %],null))<>null,
avg([Last Year], IIF(([Measures].[Labour %]>0),[Measures].[Labour %],null)),0.00),
FORMAT_STRING = "Standard",
BACK_COLOR = CASE WHEN [YTD] = 0 THEN /*White*/16777215 /*White*/
WHEN [YTD] <= [Measures].[Budget ] THEN 65408
WHEN [YTD]<= [Measures].[Budget ] +5 THEN 65535
WHEN [YTD]> [Measures].[Budget ] +5 THEN 255
END,
VISIBLE = 1
SELECT
{ [Measures].[YTD], [Measures].[Budget ] }
ON COLUMNS,
{ { [Location].[Location].&[7], [Location].[Location].&[12], [Location].[Location].&[11], [Location].[Location].&[19], [Location].[Location].&[17], [Location].[Location].&[16], [Location].[Location].&[9], [Location].[Location].&[18]
},{[Location].[Location].[All]} }
ON ROWS
FROM [Cube1]
here ==> [Measures].[YTD], [Measures].[Budget ] are calculated member
i want result like in
coulmns===> ytd,budget,nov,dec,jan,feb.,,,,,,,,,,out
rows ====> are only locations and total(average of all locations)
please guide me to get solution like mdx queryHi Vsp,
According to your description, you want to create a calculated member to combine two members, and then set it as Default member, right?
In SQL Server Analysis Services, we can use the script below to create a calculated members.
create member currentcube.[Date].[Day of Week].[weekend]
as
{[Date].[Day of Week].&[6],[Date].[Day of Week].&[7]
Every attribute in a dimension in Microsoft SQL Server Analysis Services has a default member, which you can specify by using the
DefaultMember property for an attribute. This setting is used to evaluate expressions if an attribute is not included in a query. Please refer to the link below to see the detail information about specify a default member.
http://technet.microsoft.com/en-us/library/ms174822(v=sql.105).aspx
Regards,
Charlie Liao
TechNet Community Support -
Except function with parent child hierarchy using mdx query
HI,
I need to remove some items using mdx query in parent child hierarchy.
I tried with below query,it is not removeing ,could you please help me.
SELECT
{[Measures].[Amount]} ON
COLUMNS
NonEmpty([Account].[Accounts].[Account Level 01],[Measures].[Amount])
ON ROWS
FROM (SELECT
-Descendants({[Account].[Accounts].&[47]},,Leaves)
} ON COLUMNS
FROM [Adventure Works])
induHi Indu,
Why do you remove some itmes using
Descendants function? Generally, we use FILTER function to achieve the requirement.
WITH SET [CustomAccounts] AS
FILTER ([Account].[Accounts].[Account Level 01].Members , [Account].[Accounts].CurrentMember.Name<>'Net Income')
SELECT {[Measures].[Internet Sales Amount]} ON 0
[CustomAccounts] ON 1
FROM [Adventure Works]
WITH SET [CustomAccounts] AS
FILTER ([Account].[Accounts].[Account Level 01].Members , [Account].[Accounts].CurrentMember.Name='Net Income')
SET [RemainingAccount] AS
[Account].[Accounts].[Account Level 01]- [CustomAccounts]
SELECT {[Measures].[Reseller Sales Amount]} ON 0
[RemainingAccount] ON 1
FROM [Adventure Works]
Results.
References.
http://www.databasejournal.com/features/mssql/article.php/3306101/MDX-Essentials-Basic-Set-Functions-The-Filter-Function.htm
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c0149678-97f2-4066-903f-7f9e9ff09b56/filtering-out-dimension-members-with-mdx?forum=sqlanalysisservices
Regards,
Charlie Liao
If you have any feedback on our support,
please click here.
Charlie Liao
TechNet Community Support -
New GL allocations using customer fields functionality
Can anybody throw light on New GL FI allocations using extended fields(Customer fields). Not much info is present on this topic and detailed steps on how to achieve this would be appreciated. I am basically trying to allocate between a cost center to some custom field e.g. distribution channel. Is that possible?. If so how exactly.
I found the answer
The following steps must be executed to allocate to a customer field in new GL FI allocations
Step1-(OXK3) Add customer fields to the coding block.
Step2-(FAGL_GINS)Add the new custom fields to the FAGLFLEXT table.
Step3-(SE11) Create value and text table for the new fields added.
Step 4-(SE16n) Maintain products and distribution channel table.
Step 5- (GLGCS1) Add the new fields in the master data check.
Step 6-make the new custom fields as optional entry in the field status group variant for postings and also open the fields for corresponding posting keys.
Step 7-(GLGCA6) maintain Field usage for distribution.
Step 8-update customer fields to the required ledgers
now create a distribution cycle FAGLGA31 and execute it using FAGLGA35 -
IIf condition between dates using mdx query
Hi,
how to check IIF condition between dates using mdx query.
I able to check single year,plese check below mdx query.I need to check members between years.
my requirement is member is belongs to between years(2007 to 2010),display "yes" else "NO";
Could you please give me exact mdx query.
From,to-2007,2010,if member belongs to 2007to 2010 then disply "yes"else "no".
how to pass two members in IIf condition.
WITH
MEMBER Measures.[test]
AS Iif([Date].[Calendar Year].currentmember
is [Date].[Calendar Year].&[2007],"no","yes")
SELECT {Measures.[test]}
on 0
,[Product].[Subcategory].[Subcategory].MEMBERS * [Date].[Calendar Year].[Calendar Year]
ON 1
FROM [Adventure Works]
induHi Sriindu,
consider the following:
WITH
MEMBER measures.[test] AS
IIF
Exists
[Date].[Calendar Year].CurrentMember
[Date].[Calendar Year].&[2007] : [Date].[Calendar Year].&[20010]
).Item(0)
IS
[Date].[Calendar Year].CurrentMember
,"yes"
,"no"
SELECT
{measures.[test]} ON 0
[Product].[Subcategory].[Subcategory].MEMBERS
[Date].[Calendar Year].[Calendar Year] ON 1
FROM [Adventure Works];
Philip, -
Using mdx query from Java Apache
Please suggest/guide me how to use MDX query to pull data from cube from Apache JAVA??
BI GUYHi BIGUY,
Multidimensional Expressions (MDX) is the query language that you use to work with and retrieve multidimensional data in Microsoft Analysis Services. MDX is based on the XML for Analysis (XMLA) specification, with specific extensions for SQL Server Analysis
Services.
According to your description, it's hard to give your the exact MDX query to pull the data which you want from the cube since there are no any detail information about the cube. Here are some basic knowledge for your reference.
Querying Multidimensional Data with MDX
MDX Sample
Regards,
Charlie Liao
TechNet Community Support -
Can we Implement YTD using MDX syntax in olap universe.
Hi,
I am trying to implement YTD prompt from universe level. Can any one suggest how can i implement it using MDX syntax in olap universe.
Regards,
Anil Kumar.Hi,
In MDX, you need to generate the technical name to have you expression valid.
Moreover the correct syntax is: SUM(MTD(member),measure)
So in your case the prompt must be constrained on the technical name and cannot be free, the correct syntax is:
<EXPRESSION> SUM(MTD(@Prompt('YYYYMM','A','Cal. year / month\L01 Cal. year / month',mono,primary_key)),
@(Select(Key Figures\Total Variance)) </EXPRESSION>
Last, the result will be not really significant because you are asking for a MTD with a Year-Month as time member: the result will be the measure value for the selected month.
In your case you need to have a time series function for an upper level like YTD or QTD. If you want to use MTD, the the time member selected would be at a lowest level, such as week or day.
Regards
Didier -
Hi,
I have to do cost allocation using BADI.
shall I use UJ_CUSTOM_LOGIC for this if not then which BADI should I use?
Can anyone provide me the sample code for this. (BPC version is 10)
I am totally new to BPC. Please help.
Regards,
Atiqa.Please read my answer for your other question.
Vadim -
Creating buckets by comparing Dimension member against Measure using MDX
I have a Product dimension which has hierarchies - product_id, initial_price, product_name, category and Measures - units_sold, cost_per_unit, revenue_per_unit. For each product_id I need to compare initial_price against revenue_per_unit and then assign it
to a bucket based on the comparison.
Consider the following example:
Input:
product_id initial_price revenue_per_unit
1 10
12
2 20
18
3 30
35
And if Product 1, 2 are in Category Book and 3 in Clothes then output should look like
Output:
Category revenue type Amount
Book Profit
2
Loss
2
Clothes Profit 5
Loss 0
How can I achieve this using MDX?Hi Vijay,
In your case, I couldn't found the "revenue type" attribute in the "Product" dimension. If you need to get the expected result, I suggest you calculate the amount at underlying data souce, and then retrieve the result set via MDX.
Regards,
Elvis Long
TechNet Community Support -
Problem in Component Allocation using RCPTRA01 for Reference Operation Set
Hello,
I am trying to do Reference Operation Set upload with component allocation using RCPTRA01 program in lsmw.
Even though i assign values to BIMPZ structure fields the component allocation is not happening.
Could u please give some inputs ?
Thanks!
Regards,
DeepaliHi,
Check this link, if it can help you.
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e3b763e0392e10000009b38f9b7/content.htm
Reddy -
Error extracting data from essbase cube using MDX method
Hi,
We have some problems extracting data from essbase cube using MDX method, we believe that the problem is the MDX query, this is the problem and query:
ERROR:
[DwgCmdExecutionThread]: Cannot perform cube view operation. Analytic Server Error(1260046): Unknown Member SELECTNON used in query
com.hyperion.odi.essbase.ODIEssbaseException: Cannot perform cube view operation. Analytic Server Error(1260046): Unknown Member SELECTNON used in query
at com.hyperion.odi.essbase.wrapper.EssbaseMdxDataIterator.init(Unknown Source)
MDX:
SELECT
NON EMPTY {[YearTotal].[Jan]} ON COLUMNS,
NON EMPTY {[Total Movimientos].[Presupuesto Base]} ON AXIS(1),
NON EMPTY {[Año].[FY11]} ON AXIS(2),
NON EMPTY {[Escenario].[Presupuesto_1]} ON AXIS(3),
NON EMPTY {[Version].[Trabajo]} ON AXIS(4),
NON EMPTY {[Moneda].[Moneda Input]} ON AXIS(5),
NON EMPTY {[Centros de Costo].[1101]} ON AXIS(6),
NON EMPTY {Descendants([Resultado Operacional],4)} ON AXIS(7)
FROM [DSR02].[ROP]
We try extract data using a sample cube and work fine, this is the mdx query:
SELECT
{[Actual],[Budget]} ON COLUMNS,
{[Sales]} ON ROWS,
NON EMPTY {[Product].levels(0).members} ON PAGES,
NON EMPTY {[East].levels(0).members} ON AXIS(3),
NON EMPTY {[Year].levels(0).members} ON AXIS(4)
FROM Sample.Basic
The model reversed ([DSR02].[ROP]) have the same structure than query need, the query and the model are fine, definitely we can´t see the problem, someone can help us?
RegardsYou will be able to test the MDX query in EAS, it is usually best to test the query first before trying to use it in ODI.
Is there any reason you are using MDX to extract the data, have you tried reportscript as I usually find it more efficient to extract the data.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to create SSRS repot using MDX
Hello,
Can any body let me know how to create SSRS reports using MDX queryHi Sanjay_S,
Take a look into
Build SSRS Report using MDX
Aftab Ansari -
Reg:Allocation using UJR_WRITE_BACK
Hi Experts,
I am doing allocation using badi based on previos year actuals.
I am using FM UJQ_RUN_RSDRI_QUERY to get the previous year actuals but the problem is that i have to use this FM
multiple times for every record.so it affects the performance of the system.
Can anyone send the sample code for this scenerio or helps me out in fetching database values effectively.
Regards,
Vinoth* Call SQE to read transaction data
TRY.
CALL FUNCTION 'UJQ_RUN_RSDRI_QUERY'
EXPORTING
i_appset_id = lv_appset_id
i_appl_id = lv_application_id
it_dim_name = lt_dim_name
if_check_security = abap_false
IMPORTING
et_data = <lt_tx_data>.
CATCH cx_ujq_exception.
ENDTRY.
I used this simple code and got all the records into the ITAB. hope this helps
Sravan -
Hi,
I am new to mdx and struggling with the syntax.
I have made the below (simple) query wich works fine.
select {(EJV1, Dec, [RUBRIEK 5] )} on Columns,
Descendants([109]) on rows
From Resultat
where (FY10, Prognose, [geen klant], [Geen omzet])
Now i would like to have a year to date value.
When i use the query below i see all the separate months.
How can I adjust this query so the period values are aggregated?
select { (YTD([Dec]))} on Columns,
Descendants([109]) on rows
From Resultat
where (FY10, Prognose, [geen klant], [Geen omzet])
Thanks.We use a VALUE dimension to dynamically calculate YTD/QTD/Thousands/Millions...
Our ASO database has P&L and B/S data so this YTD Member Formula handles them differently:
IIF(IsLevel([TIME].Currentmember, 0),
IIF(IsAncestor([Balance_Sheet_Accounts ], [ACCOUNTS].Dimension.CurrentMember),
[TIME].CurrentMember,
Sum(PeriodsToDate ([TIME].Generations(2), [TIME].Currentmember))
0
This lets us query with Excel as if we had the Dynamic Time Series functionality of BSO.
Edited by: baboland on May 20, 2010 1:53 PM
Edited by: baboland on May 20, 2010 1:54 PM
Maybe you are looking for
-
Do I have a Virus? Specs: Macbook 2009 mid 2.13ghz Ram: 4 gigs ddr2 ram Intergrated gpu: nvidia 2400 256mb 240gb ssd harddrive OSX Version: 10.9.1
-
Hi, i want to make a group of JSP pages in a Web App, but assuming that the browser doesn't accept cookies. Is there anyway that i don't have to indicate every link as response.encodeUrl("index.jsp")I've heard something about a <url-session-tracking/
-
How do I set up my emails on ipad with onetel please
How do I set up emails on my ipad using onetel
-
German Umlaute ö ü ä on US keyboard
What do I have to do on a US keyboard to get these Umlaute? In windows it works with alt and a number, but that does not work on my mac? Thanks for your help!!!!!!!!
-
JBUILDER APPLICATIDEPLOY ON 9I APPLICATION SERVER
DEAR SIR, PLS ANSWER ME CAN I BUILD SOME APPLICATION BY JBUILDER AND DEPLOY APPLICATION ON 9I APLLICATION SERVER, HOW TO DO THIS ? DUE TO JDEVELOPER WITHOUT VERSION ON WIN98 & LINUX FOR DEVELOPMENT. BEST REGARDS BILLY null