Time utility shell dimension across multiple date dimensions

Hello,
I have built a time utility shell dimension based on a solution from Tomislav Piasevoli (book: MDX with SSAS 2012 cookbook) however I have modified it slightly
In his example he uses two hierarchies from the same dimension. However I have modified it to use two different date dimensions, 1 hierarchy from each of the dimensions. The hierarchies must be able to be filtered by one another or combined
in the same query. The problem I’m having is my solution does not work for
distinct count measures. It works for every other type of measure…sum, count of rows etc etc. The filtering works perfectly when one hierarchy is filtered by the other, it’s just the distinct count that won’t show the parallel period.
I have created the shell dimension the typical way. Creating a named query like below. Creating the dimension with the default value etc etc
SELECT       
0 AS ID, 'As is' AS Name
UNION ALL
SELECT       
1 AS ID, 'Year ago' AS Name
Below is the original MDX and my modified MDX. If anyone can help that would be great!
--original mdx for one date dimensions.. the below works perfectly for all measures including distinct counts
SCOPE( [Time Calcs].[Calc].[Year ago]);
SCOPE([Date].[Date].MEMBERS,
[Date].[Calendar Year].[Calendar Year].MEMBERS
This = (ParallelPeriod([Date].[Calendar].[Calendar Year],1,[Date].[Calendar].CurrentMember),
ParallelPeriod([Date].[Calendar Weeks].[Calendar Year],1,[Date].[Calendar Weeks].CurrentMember),
[Time Calcs].[Calc].&[0]
End
Scope;
End
Scope;
--my modifed mdx for multiple date dimensions.. the below works perfectly for all measures
except distinct counts
SCOPE( [Time Calcs].[Calc].[Year ago]);
SCOPE([Date].[Date].MEMBERS,
[Date].[Calendar Year].[Calendar Year].MEMBERS
[Delivery Date].[Date].MEMBERS,
[Delivery Date].[Calendar Year].[Calendar Year].MEMBERS
This = (ParallelPeriod([Date].[Calendar].[Calendar Year],1,[Date].[Calendar].CurrentMember),
ParallelPeriod([Delivery Date].[Calendar Weeks].[Calendar Year],1,[Delivery Date].[Calendar Weeks].CurrentMember),
[Time Calcs].[Calc].&[0]
End
Scope;
End
Scope;

Hi Toro07,
Thank you for your question. 
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
Thank you for your understanding and support.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • How to tune performance of a cube with multiple date dimension?

    Hi, 
    I have a cube where I have a measure. Now for a turn time report I am taking the date difference of two dates and taking the average, max and min of the date difference. The graph is taking long time to load. I am using Telerik report controls. 
    Is there any way to tune up the cube performance with multiple date dimension to it? What are the key rules and beset practices for a cube to perform well? 
    Thanks, 
    Amit

    Hi amit2015,
    According to your description, you want to improve the performance of a SSAS cube with multiple date dimension. Right?
    In Analysis Services, there are many tips to improve the performance of a cube. In this scenario, I suggest you only keep one dimension, and only include the column which are required for your calculation. Please refer to "dimension design" in
    the link below:
    http://www.mssqltips.com/sqlservertip/2567/ssas--best-practices-and-performance-optimization--part-3-of-4/
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Naming of multiple Date Dimensions - Logical Layer

    I would like to get some advice on the following:
    I am currently in the process of organizing all the dimensions and facts. During the organizing I have 12 different Date Dimensions. Some facts are join to 6 of those Date Dimensions. With each of the date dimensions, all of them have the same number of columns and names. Therefore, if I am creating a report, carry over the month of Delivery Date Dimension - Calendar Month lets say and Cancel Date Dimension - Calendar Month and then proceed to the results tabs, you will see two columns "Calendar Month" You wont know which one is from the Cancel Dimension or the Delivery Date Dimension. So we have to manually rename them in OBIEE. But I would like to rename them in the BMM/logical layer instead so the end user doesn't have to rename them each time. What I would like to get advice on is how did you implement the naming of multiple Date Dimensions. Cancel Date Calendar Month or Cancel MM etc? I don't want it too long then the column is very wide in the report.
    Any advice is much appreciated!
    thank you,
    Jonathan

    Thank you,
    I read almost every best practice, but not much information around the Date Dimensions, just wondering if anyone has some great ideas around the Data Dimensions?
    Thanks
    Jonathan

  • Summarizing Data Across Multiple Dates

    Here is my issues.
    I have two dimensions.
    Date and Time. Date is a standard date dimension. Time is a time dimension who's leaf level is at the second.
    I need the ability to obtain a value like maximum from my fact table for a given set of prices. I want to summarize this value at the day level. The issue is that the value can span across 2 dates.
    Example. A Sunday starts at 4PM and ends Monday at 9AM. I need to obtain the maximum value across these specific times from both Monday and Sunday (at the specified times).
    Effectively, I need MAX(MONDAY at time 12:00AM - 9AM, SUNDAY at time 4PM - 11:59:59PM) to be displayed in the data for Date Monday.
    Suggestions on to approaches for this?

    Guys thanks for your suggestions.  Yes I'll give those options a try...
    Just a pity there was no 'aggregator' type activity which would negate the need to go down the route of writing out to SQL or create master/child runbooks which just seem a bit of overkill or adding complexity esp when using very simple runbooks - like I
    say maybe one for the IP developers out there...
    To illustrate my specific eample (one of many simple runbooks requires a summary email sent out to show output) as below:
    So the first Powershell gets VDI desktop names (3 of them) then 2nd Powershell uses these machine names as published data to get associated registration state.  From there I'd ideally like to just generate out the single summary email showing the 3
    machines/reg states instead of 3 separate emails.  I added the append line and get line activities to expose the output to check it was OK and then tried flattening various activities to try and only generate the single email (I removed the junction activity
    infront of sendmail as it didn't work)
    So I'll try the options suggested for spliiting runbooks and/or writing to SQL and see how that goes..
    Cheers

  • Joining multiple tables across multiple data sources in MYSQL throws error

    Hi all,
    I have to join tables across multiples MYSQL databases
    eg :
    Table T1,T2 from DB1
    Table T3 from DB2
    Columns from T3 are aggregated ( dimensional column ).
    Hence when i query using oracle answers ( say i have columns from T1,T2 and T3 ) , OBIEE tries to a query DB1 by having NULL for columns in T3
    It uses cast(NULL as INTEGER ) for columns from T3 . But MYSQL throws an error because "cast(NULL as INTEGER )" is not supported by MYSQL.
    I tried executing the query generated by OBIEE manually , if i try giving cast(NULL as SIGNED INTEGER ) , it works.
    pasting the query for reference
    select distinct D1.c2 as c1,
    D1.c1 as c2,
    cast(NULL as INTEGER ) as c3
    from
    (select distinct T87.title_id as c1,
    T59.asin as c2
    from
    print_book_catalog T59 left outer join
    title_authority T87 On T59.asin = T87.asin
    where ( T59.asin = '0345378911' )
    ) D1
    I am not able to find any config file to set this property ( and use signed integer instead of integer ) . Even DBFeatures.INI does not have relevant information.
    Can someobody please help me solve this problem.

    Stijn,
    Thank you for the article link. That was very helpful! It seems that I had a few things off as you do need the "This source should be combined with other sources at this level." checked. In my two table source columns for DATA_SOURCE I defined a literal ('086496' and '085597' for the other) in the Column Mapping tab. I pasted the following in the Fragmentation content, checking the "This source..." box on the Content tab:
    eSIS.SANDBOX4_SCHOOLS.DATA_SOURCE = '086496'
    And pasted the following into the WHERE clause, checking "Select distinct values" on the Content tab:
    sandbox4."".OBIEE.NWOCA_SCHOOLS.SCHOOL_CODE = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox4."".OBIEE.NWOCA_SCHOOLS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    This took care of my user's security, utilizing the session variables in the WHERE clause. I am now able to generate reports that only one user can access from one data source and share that same report with another user who can only see data from the other data source.
    Many thanks!!!

  • Standard dimensions across multiple programs?

    Hi All,
    So like many of you, I use Photoshop, Final Cut Pro, and Motion in conjunction with DVD Studio pro. This means creating multiple documents, each of which requires choosing the dimensions.
    What I want to know is what dimensions should I be choosing to ensure maximum compatibility and identical results across all 4 programs? If I am doing full screen motion graphics in Motion, putting togeher clips in FCP, and doing overlays in Photoshop, I want to make sure it will all line up and be the best resolution when put into DVDSP. I have read 20 books and they all seem to say something slightly different.
    For example - in FCP, should I choose a standard DV preset or uncompressed so my text looks cleaner? What about Photoshop - file dimensions (720x480, 720x540, etc)? In Motion, do I want DV or SD Broadcast (480 vs 486)? Etc...
    If there is one comprehensive source on this, please point me to it...
    Thanks,
    Jason

    Take a look here, not 100% but gives some thoughts
    http://discussions.apple.com/thread.jspa?threadID=667654&tstart=0
    It is an example I set up for Motion use. (Export settings are key here also) Basically 720 x 480 uncompressed. Photoshop usually works at 720 x 480 if using CS2 which corrects for aspect ratios (using DV preset), if not you need to layout at the larger size then rescale to 720 x 480 without constraining proportions.

  • Performance Point - 1 Dashboard, 2 cubes, 1 Time intelligence filter, filtering 2 different date dimensions on different cubes!

    Hi
    Hope you are well.
    I have a challenge. I am working with Performance Point and a number of different cubes.
    In this case I need to include graphs and charts from 2 different cubes on one dashboard page.
    The challenge I have, is to be able to use a Time Intelligence filter from one cube, eg, [TimeSold].[Calendar hierarchy] on Cube 1, and for this to filter graphs from the second cube (second cube [Time].[Calendar hierarchy]), on one dashboard page. 
    Is there any way I can achieve this using MDX or Parameters within performance point?
    I cannot amend the cubes or dimensions. I have to work with the front end tools only.

    Hi ShebUK,
    I don't think we can achieve this requirement on the front end, but you can discuss this issue at the following forum:
    http://social.technet.microsoft.com/Forums/en-US/home?category=performancepointserver
    I'm not familiar with PerformancePoint Services and not sure that we can implement linked dimension to achieve this. A linked dimension is one that exists in one Analysis Services database, but reused in another Analysis Services database of the same version
    and compatibility level. For more information, please see:
    Define Linked Dimensions: http://msdn.microsoft.com/en-us/library/ms175648.aspx
    Hope this helps. 
    Regards,  
    Elvis Long
    TechNet Community Support

  • Office Web Apps Farm Across Multiple Data Centers?

    I have not been able to find any definitive information about this but the article below seems to suggest what I have in mind is not recommended.  I am not sure about supported.
    "Stick to one data center.  Servers in an Office Web Apps Server farm must be in the same data center. Don’t distribute them geographically. Generally you need only one farm, unless you have security needs
    that require an isolated network that has its own Office Web Apps Server farm."
    http://technet.microsoft.com/en-us/library/jj219435.aspx#topology
    What I have is two very well connected data centers located in the same metro area.  We will be deploying a Lync EE pool at each site and use pool pairing for DR.  What I am wondering is should I:
    Create a single Office Web Apps farm with the server from each data center as members?
    Create a farm in each site with a single member, but both farms sharing the same URL?
    Create a farm in each site with a single member, but both farms have different names.  This seems unnecessarily ugly, but throwing it out there.
    Since Lync is using Office Web Apps in read only mode the question is different than if SharePoint were involved.  However, I can't rule out this farm also being used for SharePoint down the road.
    The LB/RP device of choice is Citrix NetScaler.  Another thought I had is can that be configured so incoming requests for Office Web Apps at each data center can prioritize traffic to the server or farm within that data center?  If that is unavailable
    then switch to the server at the other data center?
    Thanks.

    Hi,
    An Office Web Apps farm can be deployed to provide functionality for multiple sites.
    Also you can deploy one Web Apps farm on each site.
    So I think you can choose to deploy with the option one and three as you said.
    Here is a case about deploying Lync deploy Office Web Apps server may help you:
    http://social.technet.microsoft.com/Forums/lync/en-US/7e67bacf-4895-4bdb-95b8-0aff8a0c575f/geographical-placement-of-office-web-app-servers?forum=lyncdeploy
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Best workaround for querying across multiple Data Sets?!

    Hi folks
    Today I was migrating my older OEID 3.0 applications to 3.1, and I noticed some of my older version views are not working anymore in new version.
    We used to have multiple Bulk Add/Replace (without specifying Collection Keys) and we could use any attributes from any of these, in a certain View for example.
    My views were like SELECT SUM("an attribute/metric from Bulk Add_1") / SUM("an attribute/metric from Bulk Add_2")
    Now that you have to specify a FROM clause in your views, and it has to be from a certain Data Set, whats the best way to achieve above line goal?
    Bests,

    Patrick
    What I meant by Cross Join is Cartesian Product in situation that you have many-to-many relations between 2 Data Sets
    Lets say, I have to different data, coming from 2 totally different source, one from Sales Dept and the other one from Purchase Dept:
    Sales Table:
    Part Number
    Sales QTY
    Sales Date
    Part Type
    Manufacturer
    Country
    0001
    70
    10/5/2012
    TYPE1
    Manuf1
    US
    0001
    120
    10/6/2012
    TYPE1
    Manuf1
    US
    0001
    350
    10/7/2012
    TYPE1
    Manuf1
    US
    0002
    100
    10/8/2012
    TYPE2
    Manuf2
    US
    0002
    80
    10/9/2012
    TYPE2
    Manuf2
    CA
    0003
    2500
    10/10/2012
    TYPE3
    Manuf3
    CA
    0004
    180
    10/11/2012
    TYPE4
    Manuf4
    US
    Purchase Table:
    Part Number
    Purchase QTY
    Purchase Date
    Part Type
    Manufacturer
    Country
    0001
    50
    10/5/2012
    TYPE1
    Manuf1
    US
    0001
    60
    10/6/2012
    TYPE1
    Manuf1
    US
    0001
    100
    10/7/2012
    TYPE1
    Manuf1
    US
    0001
    200
    10/8/2012
    TYPE1
    Manuf1
    US
    0002
    1100
    10/9/2012
    TYPE2
    Manuf2
    US
    0003
    20
    10/10/2012
    TYPE3
    Manuf3
    US
    What is the preferred approach to ingest this data?

  • Search across multiple data stores

    Hello,
    I have 1 Endeca Server with 2 different data stores in it. I would like to search for example "Marco" in the first data store and also also get the records back from the other data store where "Marco" is in the text. Is that possible?
    Thanks.
    Marco
    Edited by: Marco Snels (AortaBI)(NL) on 9-mei-2012 2:21

    Hi Marco -
    The search box component can be configured for use against multiple search interfaces, potentially from multiple datastores. In this case, the expectation is that during configuration you would specify a target page for each search interface datastore in use and those pages would have components focused on that datastore. The end user can then toggle between the different search interface options and when they submit their search they will be pushed to a page with breadcrumbs and a results list etc. focused on that datastore. All other components are tired to a single datastore and do not merge results from multiple datastore instances. The more common case is that the search box in configured with a single datastore in use.
    Jason

  • Join With Date Dimension

    Hi,
    I have one Dimension called Caseheader and Date Dimension. In Date dimension I have date key  yyyymmdd format. I have fact table in which i am getting CaseCreationDate from Caseheader Dimension. in case creationdate it contains time as well because
    there is a requirement to do some reports based on timing.
    When I join case creationdate to date column in a data source view with date dimension i do not get any thing  and get error in cube processing as well because it does not match with case creationdate because of time. What is the best possible approach
    to resolve this issue? Do I need to add time dimension? or have a time field in date dimension?
    Could anyone suggest please?
    MH

    Thanks Christian, I have separated date and time and kept the original field with datetime as well in case if somebody wants it for reporting purpose. Thank you so much for all your help suggestions. Much appreciated. Used this code
    convert(date,ch.CaseCreationDate)asCaseCreationDate
    ,convert(varchar(8),convert(time,ch.CaseCreationDate))as[CaseCreationTime]
    Regards,
    Mustafa
    MH

  • Single date dimension while creating Aggregate tables

    hi Guys ,
    I have single date dimension(D1-D) with key as date_id and granularity is day-level. I have fact table(F1-D) which gives daily transactions . Now i created three aggregate tables with F2-M(aggregated to monthly),F3-Q(Aggregated to quarterly),F4-Y(Aggregated to yearly). As I said.I have a single date dimension table with date-id as a key.I have other columns month,quarter,year in Date dimension.
    My question is : Is this single dimension table is enough to create the joins and maintain the BMM layer .I have joined the date_id to all the facts in physical layer. In BMM Layer i have one fact and 4 logical table sources .Ii have created dimension hierarchy on Date dimension and created the logical levels as year ,quarter,month and daily level and also set their respective level keys . Now after doing these i have also set the logical levels to the 4 logical table sources in the fact table.
    Here i am getting an error saying :
    WARNINGS:
    BUSINESS MODEL Financial Model:
    [39059] Logical dimension table D04_DIM_DATE has a source D04_DIM_DATE at level D04_DIM_DATE Detail that joins to a higher level fact source F02_FACT_GL_DLY_TRAN_BAL.F03_FACT_GL_PERIOD_TRAN_BAL
    Can anyone tell me why am i getting this error .

    1) as you suggest, creating mini dimension tables for each level
    3) using views with select distinct x,y,z to model 1) but without the need for phsical tables
    I have thought of these scenarios .But it's just creating a multiple Date Dimension tables with there respective grains if we follow 1 and 3 steps you mentioned.
    But i don't want to create aliases or views either on Datawarehouse or physical layer (Admin tool).Just with using a single Date Dimension table I need to comeup with a solution as mentioned by my Colleagues.
    2) pushing all the calendar attributes into the aggreate table (eg your year aggregate has all the year fields, your month aggregate has all the year fields and all the month fields etc.). Then in BM&M use the aggregate table as a logical table source for the date logical table.
    What do you mean by "pushing all the calendar attributes into the aggreate table".If possible can you eloborate a bit so i can try in this way to get this done .
    One morething .Here What they were saying is .Join the Single Date Dimension to all the 4 fact tables in Physical layer . Then drag all the tables into the BMM layer and create a Dimensional hierarchies for the Date dimension with levels as Year -->Quarter--> Month--> day level. With the Fact tables: Single fact tables with multiple logical table sources .Then we need to set the levels on the respective logical table sources with the desired levels .Say monthly aggregate table--> Month, Quarter Aggregate table--> quarter level in the Contents TAB.
    When i do this I am getting the Warning:
    WARNINGS:
    BUSINESS MODEL Financial Model:
    [39059] Logical dimension table D04_DIM_DATE has a source D04_DIM_DATE at level D04_DIM_DATE Detail that joins to a higher level fact source F02_FACT_GL_DLY_TRAN_BAL.F03_FACT_GL_PERIOD_TRAN_BAL

  • Time Machine to back up across multiple disks?

    I've run out of space on my Time Machine disk because I have a lot of video stored on my system. (It's a 2TB drive and it's maxed out)
    Is there a way to set up to share the Time Machine back up across multiple drives? If not, any recommendations for how to address this issue?
    Thanks for any assistance!

    No, Time Machine backups cannot span multiple volumes.
    If you're doing a lot of video editing, and a lot of the backup space is taken up by intermediate versions, there are ways to minimize that.
    If you just have too much video, your best bet may be to get an additional external HD, and use a different app to back up the video files to it, and exclude them from being backed-up by Time Machine.
    Tell us a bit more about your setup -- how many drives/partitions, and how large, is Time Machine backing-up, and how much of that is video?    

  • PRINT ENLAGED IMAGE ACROSS MULTIPLE PAGES

    I have a scanned image that I want to print at 4 times its original size across multiple pages. Is there any known way to do this?  

    Thanks for the info, guys.
    I don't have InDesign installed. I'll consider installing it, but it's sad that we have to install an entire app to get functionality for Adobe graphics programs that even browsers offer routinely. Jeez, Firefox spans pages automatically.
    If you have a graphic larger than the page and you don't opt to resize it, Photoshop should offer to clip the overflow or print multiple pages. And ideally, to print multiple pages with an optional overlap.
    I would have thought this was in version 1. But then again, Photoshop didn't have a thumbnail browser until what, version 7?

  • Multiple Date Fields (Fact Table) - Linking with Time Dimension

    I have a fact table that has multiple date columns.
    I can make a time dimension, but it has to be joined to a particular date column. This becomes difficult because of the limit in having multiple date fields reference one time dimension. I can see possibly
    creating a date table which contains all dates, link to fact as well as time dimension table. I am trying to better visualize the table layout on this one. Or are there possibily better ways of looking at this senerio
    Any idea's

    Figured this one out; going to use one time dimension - what looking too much into the details in regard to this scenerio

Maybe you are looking for

  • Chart legend is incorrect if table is excluded in analysis

    Working on OBIEE 11.1.1.5 with Essbase source. If I include the table in the analysis, the legend of my chart looks correct (5 items). https://picasaweb.google.com/jennifer.corpus/OBIEEQuestion?authkey=Gv1sRgCMThg5CZss_9Qg&feat=directlink#56177799855

  • Maximum Length of Element Names - 10.2

    While defining of an XML schema in Oracle 10.2, is there any maximum limit on the number of characters that may be in an element's name? I've seen some write-ups mention 'recommendations' of 30 or 35 for earlier versions, but nothing that says there'

  • IPhone - Syncing with computer

    As this is my first post, I apologise if this has been dealt with elsewhere. I have a new computer with office 2007 installed, and of course itunes. I have my trusty 3G iphone, and it syncs all my contacts / calender / etc, but I cannot drag any musi

  • BPC 7.5 Clarification on Installation Document

    In Page number 23 in SBOP_PC_75_NW_SP03_Install.pdf under step 10 It says. Define the .NET service user that is needed to log on to ApShell and run Server Manager by doing the following: Stop the IIS and SAP Planning and Consolidation instances using

  • Change capitalization of e-mail address for ATTYahoo server

    I have a very annoying and odd problem with our DSL host rejecting our e-mail. Our host, ATT PacBell uses Yahoo to provide their services. They recently required that we register all the e-mail addresses that we are using to send over their servers.