Multiple dates connecting to one timedimension in SSAS

Hi,
I have Three dates in my FactSales - Deliverydate, shippingdate, shippingdateconformed - at the moment deliverydate is connected to the Time dimension. How do I connect the other two dates to the same Time dimension?

Hi ,
You can create One Time Dimension with following Keys ;
Deliverydate Key , shippingdate Key, shippingdateconformed Key and Date Key and then in fact table create 3 relationdhip using Date Key .
Deliverydate Key -> DateKEY
shippingdate Key -> DateKEY
shippingdateconformed Key -> DateKEY
For Example :
Relationship like ;
If you  are talking about Role Playing Dimension .
Kindly follow below link;
http://www.mssqltips.com/sqlservertip/3117/defining-role-playing-dimensions-for-sql-server-analysis-services/
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

Similar Messages

  • Multiple db connections for one report

    Hi all,
    I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
    http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
    I am asking this question because my report needs data from two separate Oracle databases.
    Edited by: user12239004 on Apr 27, 2010 2:14 AM

    No, you can only have one login.
    However, this is simple to resolve by creating a database link in one database to the other database.

  • Multiple Data Sources In One Logical Table

    I am new to OBIEE and I have came accross an issue. I appologize if this information is in the forum somewhere but I have searched and cannot find it.
    My situation is that I would like to have one logical table that contains multiple data sources which have all the same columns. I already have session variables setup to differentiate the user's security through a row-wise variable for a specific column and a session variable for another column which determines the user's association to the data source in which they belong to. This security works well when the data sources are seperated in the Business Model and Mapping portion but the issue that arises is that the user's cannot share reports when the data sources are seperated in the BM&M.
    I have dragged and dropped a table from the Physical model to the BM&M, I then dragged the second data source (with same meta data structure) over to the "Sources" folder in the first data source table in the BM&M. On the Content tab or each data source table I have defined the WHERE clause as such, where VALUEOF(NQ_SESSION."SCHOOL") session variable is my row-wise column filter and the VALUEOF(NQ_SESSION."GROUP") filter is my data source determinative:
    sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.HOME_SCHOOL = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    Unfortunatley this only returns values in the BI Answers for the first drag and drop Pysical table in the BM&M layer and not the second Physical table drug into the "Sources" folder. I have also tried to create a new logical table and drag both tables into the "Sources" folder to no avail. I have experimented with the Fragmentation content on the "Content" tab of the seperate logical tables, checking the "This source should be combined with other sources at this level", which gives me an error in BI Answers that a column does not exist which really does.
    What could I be missing? Advanced thanks to those who reply.
    Thank you,
    Kyle

    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!!!

  • Space allocation on 11g R2 on multiple data files in one tablespace

    hello
    if the following is explained in Oracle 11g R2 documentation please send a pointer. I cant find it myself right now.
    my question is about space allocation (during inserts and during table data load) in one table space containing multiple data files.
    suppose i have Oracle 11g R2 database and I am using OMF and Oracle ASM on Oracle Linux 64-bit.
    I have one ASM disk group called ASMDATA with 50 ASM disks in it.
    I have one tablespace called APPL_DATA with 50 data files on it, each file = 20 GB (equal size), to contain one 1 TB table calll MY_FACT_TABLE.
    During Import Data Pump or during application doing SQL Inserts how will Oracle allocate space for the table?
    Will it fill up one data file completely and then start allocating from second file and so on, sequentially moving from file to file?
    And when all files are full, which file will it try to autoextend (if they all allow autoextend) ?
    Or will Oracle use some sort of proportional fill like MS SQL Server does i.e. allocate one extent from data file 1, next extent from data file 2,.... and then wrap around again? In other words it will keep all files equally allocated as much as possible so at any point in time they will have approximately the same amount of data in them (assuming same initial size ?
    Or some other way?
    thanks.

    On 10.2.0.4, regular data files, autoallocate, 8K blocks, I've noticed some unexpected things. I have an old, probably obsolete habit of making my datafiles 2G fixed, except for the last, which I make 200M autoextend max 2G. So what I see happening in normal operations is, the other files fill up in a round-robin fashion, then the last file starts to grow. So it is obvious to me at that time to extend the file to 2G, make it noautoexented, and add another file. My schemata tend to be in the 50G range, with 1 or 2 thousand tables. When I impdp, I notice it sorts them by size, importing the largest first. I never paid too much attention to the smaller tables, since LMT algorithms seem good enough to simply not worry about it.
    I just looked (with dbconsole tablespace map) at a much smaller schema I imported not long ago, where the biggest table was 20M in 36 extents, second was 8M in 23 extents, and so on, total around 200M. I had made 2 data files, the first 2G and the second 200M autoextend. Looking at the impdp log, I see it isn't real strong about sorting by size, especially under 5M. So where did the 20M table it imported first end up? At the end of the auotextend file, with lots of free space below a few tables there. The 2G file seems to have a couple thousand blocks used, then 8K blocks free, 5K blocks used, 56K blocks free, 19K blocks used, 148K free (with a few tables scattered in the middle of there), 4K blocks used, the rest free. Looking at an 8G similar schema, looks like the largest files got spread across the middle of the files, then the second largest next to it, and so forth, which is more what I expected.
    I'm still not going to worry about it. Data distribution within the tables is something that might be important, where blocks on the disk are, not so much. I think that's why the docs are kind of ambiguous about the algorithm, it can change, and isn't all that important, unless you run into bugs.

  • Multiple Data Columns in one report column

    How do I list multiple columns returned from a select vertically within one report column. For instance, I have three statuses for a project that I want to list, I'd like to list the three statuses within one status column. I remember seeing this somewhere but cannot find it now. Example:
    Status Column
    Budget: Green
    Schedule: Red
    Issues: Yellow

    additionally you could use HTML expressions. When editing your report, click on the column you want to use for displaying multiple data columns. This will take you to the report columns attributes page, there you can type in something like the following into the HTML expression field, referencing other report columns using #COLUMN_NAME# substitutions:
    #BUDGET#
    #SCHEDULE#
    #ISSUES#
    this is assuming your column aliases are named BUDGET, SCHEDULE and ISSUES. You can then just hide the columns that you don't want to see because the data is already shown using the HTML expression.
    Regards,
    Marc

  • Can I have multiple clouds connected to one id?

    I have 5 phones and several iPads connected to one id and sharing one cloud. We share music and contacts however, when one phone rings, all phones ring. When one of us is texting, we all can see who is being texted but can't read the text. Is there anyway to unlink the phones AND still share music on this id?

    Welcome to the Apple Community.
    You can all share an ID for iTunes, but all have your own ID for iCloud.

  • PROBLEM  TRANSFERRING   MULTIPLE   DATA  ENTRIES    FOR  ONE KEY-FIELD.

    DEAR   EXPERTS ,
       I  HAVE  TRANSFERRED  DATA  FROM  THE  FINAL  INTERNAL  TABLE  OF  MY  ABAP REPORT (NOT ALV)  TO  CUSTOM  Z-TABLE  CREATED  IN  SE11.
    BUT  MY  PROBLEM  IS  :  I   COULD  NOT   TRANSFER  MULTIPLE   DATA  ENTRIES   FOR  A  PARTICULAR  FIELD.
    FOR  EXAMPLE :  IN  TABLE  EKKO  THERE  ARE   FOUR  EBELN-4900006375  AND  FOR  THAT  DIFFERENT  EBELP S  ARE
    PRESENT.  I  COULD  TRANSFER  ONLY  THE  FIRST  ENTRY ,  THAT  IS :  EBELN -  4900006375  AND   EBELP - 0010,
    AFTER  THAT  THE  ZTABLE  IS  NOT  GETTING  UPDATED  TO  EBELN-4900006375 FOR  EBELP - 0020  AND  SO ON.
    I  HAVE  TRIED  ALL  THE  '  MODIFY, INSERT,  UPDATE  '  STATEMENTS.  I  HAVE  USED  AT - USERCOMMAND - HIDE  AND  CHECKBOXES.
       PLEASE   SUGGEST   A   SAMPLE   CODE   FOR   THIS.
    Moderator message: please post again, but not in all upper case.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Jun 19, 2011 10:05 PM

    There are actually 5 queries in this report now. From what I understand about a union query, I don't think it will work here because the data being returned in each of the queries is so different. I basically need to know how to make all the criteria for each individual to be displayed before proceeding to the next data set, which will include the same data as the first, but for the next employee, and so on. I need to basically create a repeating frame with each individual's respective data I guess, but every time I do, it tells me that it's referencing an invalid group.

  • Multiple sockets connected to one port

    Hello I am running a LabVIEW VI that is based on the Labview TCPServer example. I am wondering what the best way to deal with multiple connections to a single port would be. For example I have a device(could be thought of as the same thing as the TCPClient vi) that connects to the server using the port number and the IP address. The communication works fine when there is only one device trying to connect to the server, the problem occurs when two devices try to connect to the server. When the first device connects all data sent shows up fine, when the second device connects, the status on the device indicates a proper connection but none of the data sent shows up on the server side. I assume that I must do something with the connection ID to distinguish between the two connections, but I was wondering if there was an example or something that deals with this issue, or if someone would like to explain how I could get the data to show up properly. Any help is appreciated, thanks!

    I am hoping that there is something similar to the java api where there is some way I can start a new threads to handle multiple connections on the same port. I would assume that if java has it LabVIEW would have something similar. Unfortunately I am not sure how to go about finding out how to do such a thing in LabVIEW.
    The way that I assume the TCPListen.vi works is that there is some mechanism polling the specified port and ip address waiting for a request for a connection. Once a request is received the VI creates a connection ID so that the other subvi's can perform operations on the specific connection. It also looks as though the TCPListen.vi continues to listen for new connections, because the clients indicate a connection when more then one of them are run trying to connect to the same port and IP.
    So my question is either, how to start a parallel process to handle the new connections, or where can I find the new connection ID (because the indicator only shows the connection id of the first client to connect). Basically I am having trouble distinguishing between the multiple connections on the same port.I would like to keep all of the clients sending data through the same port if possible.Each client identifies itself in its data message so keeping the data organized is not a problem. 
    I also looked at the data socket examples, mainly because the Java examples I was looking at used "Sockets". I ran into similar troubles finding a way to create distinguishable connections using DS's as well. Anyways, any help is appreciated. Thanks.

  • Using several data connections in one SSIS data source?

    I am loading data from several SQL Server 2012 databases into a datamart. Currently, I am simply using sql sources and destinations for that. However, some of the queries require JOINs between the source databases. Therefore I currently refer to the databases
    within the command text of the sql source, e.g.
        SELECT t1.Field, t2.Field
        FROM [server1].[db1].[dbo].[table1] t1
        JOIN [server1].[db2].[dbo].[table1] t2 ON t1.Table1Id = t2.RemoteTable1Id;
    This is flawed, since all the sql commands have to be changed if the database or server names change. It would be far better to refer to connections which can be changed on package level and my question is how to get that done.
    One way I can think of to get that done is to use several sql source queries and join the data with SSIS join operations. For that all current data flows need to be reworked and I am unsure about the performance when joining large databases compared to the
    performance of a single t-sql query.
    The other approach would be some dynamic sql stuff which I want to avoid whenever possible. However, if it was possible to use a parameter to insert server/database into the sql command somehow, then that could be an option.

    Whatever you're doing now is a bad practice inside SSIS. You should be using data flow tasks for this if data come from different sources and use connection managers pointing to each of them. You add these connection properties as config items which will
    enable you to change them from outside package based on your environment
    If performance is your concern you can go for staging approach where you bring deltas(changes) alone on daily basis and then use it in the comparisons with destination tables using MERGE or T-SQL for set based processing. You need to have audit columns in
    your tables for this though.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Multiple data merges on one page

    I have created a postcard that I need to be sent out to clients. To save money, we have put three postcards on one 12 x 18 sheet of paper. I am trying to put three data merges on each sheet for customers addresses. Is this possible? I can provide an image if necessary.

    Hi ryaniscreative,
    This is absolutely possible, I do this often for variable data nametags on Avery labels. However, our printer should be able to automatically get this done for you if you are printing this digitally. Our Cannon printers have the capability position files (front and back) 2-up, 3-up, etc. I am sure this is the case for most digital printers on the market. Ask your printer and they should do this automatically, in which case you would build the file at full-size and Data Merge as normal.
    Never-the-less, here is how to do it manually:
    1. Create your 12" x 18" document in InDesign CC(2014).
    2. Drag your postcard art into the 12" x 18" document and create Crop Marks manually for this postcard template art.
    3. Position this postcard template art to the upper left corner of the document.
    4. Map all of your variables as normal to this one postcard template art on both pages to your .CSV file.
    5. In your Data Merge Palette, and in the Drop Down Menu in the Upper Right Corner, select Create Merged Document.
    6. Under the Records for Document Page section, select Multiple Records and then at the bottom of the dialog box select Preview Multiple Record Layout.
    7. Click on the Multiple Record Layout tab.
    8. Adjust the margins and column spacing in the dialog boxes according to your intent of positioning and the specs of the design.
    9. Hit OK to have InDesign begin creating a merged document out of all of your list variables.**
    **If you want to simply generate a PDF then in Step 5, instead of selecting Create Merged Document, hit Export to PDF.
    NOTE: This can only be done with a one-sided design. If you need to print graphics on the other side of the postcard (for mailing purposes of course) you will have to do this process again exactly the same way, in a separate InDesign document and then manually create new pages between the existing front side pages and paste in place, from one InDesign document to the other.

  • Find/Change (Multiple Date Changes in one Find)

    Hi ID geniuses, got a question for your gigantic brains.
    This may or may not be an easy one...
    I do a lot of production work and I'd like to create a Find/Change or even a GREP search that will allow me to change multiple blank dates at once).
    the format changes from file to file and follows these 4 formats usually and all 4 formats could be used in one document.
    XX/XX/XX (8 characters)
    XX/XX/10 (8 characters)
    XX/XX/2010 (10 characters)
    9/26/10 - wrong date in place already. (6 – 8 characters depending on the month)
    Instead of having 4 different searches, is it possible to do one search that look for any of these text formats and change them at once?
    Any ideas/guidance will be appreciated.
    Thanks for your time.

    Piece of cake.
    Of course GREP comes to the rescue. Enter this in your search field:
    \b((XX|\d{1,2})/){2}(XX|\d{2,4})\b
    and it'll find any of your examples. Wot Doth This All Mean?
    \b     a Word break -- there must not be a word character before this entire expression. This means it'll ignore "XXX/XX/XX".
    (     repeat group -- see below
    ( XX | \d{1,2} )     Either "XX" (exactly) or "a digit, 1 or 2". This means it'll ignore "XXX/XX/XX" (three exes), pick up "1/2/3" (one digit), ignore "123/123/123" (three digits)
    /     A slash. Nothing special, except ...
    )     .. since this is the end of the repeat group ...
    {2}     ... we want twice the sequence "XX/" (or "digit/"), to match "XX/XX/" and every possible combo with digits as well.
    (     oh yet another group. That's because ...
    XX     .. this literal text ...
    |     ... OR ... (hold on, I'm gettin' there)
    \d{2,4}     .. two to four digits should be matched ..
    )     .. in this entire group.
    \b     Phew! A Word break to prevent it matching "12/34/56789"

  • Multiple PPPoE connections on one Mac

    Hi,
    I have two PPPoE type connections on my MBP; one is meant only for downloading whilst the other is my main browsing, mail, etc account.
    The problem I have is this, before getting the second ISP account that I use for major downloading, I had just one PPPoE connection that I used for everything. Now that they are separate, I have the main one (the one I use for my mail and browsing, etc) set to connect when needed, hence it connects automatically when my MBP starts up due to the fact that my mail starts up on login.
    I can manually disconnect it and connect the other account (downloading account) then use that connection for whatever it is that I download or stream, but the problem comes in when the other PPPoE account connects (because I never close my mail, only hide it).
    So I am a little concerned that the wrong PPPoE connection might be used to download/stream my media. And, yes it is important that the accounts are used for different processes. With two PPPoE connections active (never knew that was even possible), I have been left with the option of removing the "connect when needed" option from my default connections meaning I now (It sounds lazy, I know...) I must click connect for each account when they are needed and that being as soon as I switch my MBP on.
    Any assistance would be greatly appreciated, thank you much!
    Kal

    Never mind, I figured it out. Set the service order appropriately.

  • Querying multiple date ranges in one select

    Hello guys,
    DDL:
    CREATE TABLE DBO.SALES (
    TYPE VARCHAR(50)
    , REVENUE DECIMAL(19,2)
    , SALE_DATE_TIME DATETIME)
    What I'm trying to figure out is how I can pass two dates to a where clause querying this table, a start date and an end date. From this I can group up the REVENUE for each TYPE (but there's more):
    SELECT TYPE, COUNT(*) AS NBR_OF_SALES, SUM(REVENUE) AS TOTAL_REVENUE
    FROM REPORTS.DBO.SALES
    WHERE SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD
    GROUP BY TYPE
    I'd now like to add a couple of extra columns in the select that calculates the TOTAL_REVENUE equal to the time period of the two dates, but offset by 1 week, 1 month and 1 year, so that would be three columns. I'm guessing this would be possible with a
    CROSS APPLY, but I just can't get my head around it at this time. Just for clarity, the expected output would contain these columns:
    TYPE, NBR_OF_SALES, TOTAL_REVENUE, TOTAL_REVENUE_LAST_WEEK, TOTAL_REVENUE_LAST_MONTH, TOTAL_REVENUE_LAST_YEAR
    Any help is greatly appreciated.

    SELECT TYPE,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD THEN 1 ELSE 0 END) AS NBR_OF_SALES,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(WEEK,1,@STARTPERIOD) AND DATEADD(WEEK,1,@ENDPERIOD) THEN 1 ELSE 0 END) AS NBR_OF_SALES_WeekOffset,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(MONTH,1,@STARTPERIOD) AND DATEADD(MONTH,1,@ENDPERIOD) THEN 1 ELSE 0 END) AS NBR_OF_SALES_MonthOffset,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(WEEK,1,@STARTPERIOD) AND DATEADD(WEEK,1,@ENDPERIOD) THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE_WeekOffset,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(MONTH,1,@STARTPERIOD) AND DATEADD(MONTH,1,@ENDPERIOD) THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE_MonthOffset
    FROM REPORTS.DBO.SALES
    WHERE SALE_DATE_TIME BETWEEN @STARTPERIOD AND DATEADD(MONTH,1,@ENDPERIOD)
    GROUP BY TYPE
    Is this what you want?
    We have three total columns per metric, one for the period, one for the period offset by a week, and one for the period offset by a month.
    We've also adjusted the where so all the data for the offset period is included.

  • Multiple ethernet connections in one computer?

    I have two ethernet connections in my computer (2 IP Addr) I would like one connection to talk to a PLC(UPD) While the other (wireless) to talk to a printer across the room (TCP Visa Resource- open and write) Is this possible in LV7.1

    jaggedmedia wrote:
    > I have two ethernet connections in my computer (2 IP Addr) I would
    > like one connection to talk to a PLC(UPD) While the other (wireless)
    > to talk to a printer across the room (TCP Visa Resource- open and
    > write) Is this possible in LV7.1
    There should be no problem. Assuming your network is setup properly and
    each network card has its own subnet, the TCP/IP socket driver should
    route any package through the correct network interface.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Multiple Date columns  in one fact table

    hi ,
    I have a fact which related to multi date, like bid date, win date, lost date ,etc...,
    I have create dimension like dim_bid_date, dim_win_date,
    but if I wan to create a report , the value sum by the month (2012.01-2012.08), I don't know how to do in one report which related multi date.
    I think I should have a 'common date', how to do, can anyone explain it in detail. thanks.

    2 thinks here, do you want to reports based on bid date,win date, lost date etc?
    if yes you need to create those many date logical tables and you need to have in Subject area (something like 'Agreement Details' subject area if you have OOB rpd)
    Coming to your report requirement 'sum by the month'; I dont think this is complete report requirement, you need to know month type like bid month or win month or lost month or what!!
    if user dont want do report by those mentioned dates then just use just date of type( bid,win etc) with out using day dim;
    you might have some date like created date, create report based on that for sum by the month.
    Hope this helps, if helps pls mark

Maybe you are looking for

  • Licence issue in the delivery not in sales order

    Dear SD Experts, I am facing one differnt issue please check this if you have faced any time. In sales order licence is redtermined perfectly with having any problems for Four line items In the delivery also created 4 lines but if we check in the lic

  • Issue in Price record determination

    Hello All, Scenario: The sales order has to determine 2 types of tax ( service , VAT)in the pricing procedure, so the customer classification has respective  parameters and the price conidtions are maintained for both the condition types the problem

  • Apple Care bought in US and then moved to UK

    I am moving to the UK (Scotland) and not sure if I should buy Apple Care for my iPhone - will it be honored in the UK after I move?? Should (can I) buy it the UK for a US phone?? Thanks for the help....

  • MacBook Pro did not shut down (hang)...

    Good Afternoon, About 2 days ago I upgraded to Mac OS X Lion (clean install), and I haven't had any major problems so far in term of system freezes or missing user files. However, today when I shuted down my MacBook Pro it went to a white shutdown sc

  • How to Join in TopLink

    Hi, This is maybe dummy question, but i don't have idea how i can do this. Basicly we can view data from database table easly using ADFand EJB-TopLink. For example (using HR schema, employee and department table) we can drag employee datacontrol into