Make Year, Period in Fact table as a dimension key attribute

Posted on 2011-10-18
Last Modified: 2013-11-10
Is it possible to make the year and Period in my Fact table as a dimension key attribute ? My current Fact table scheme is :

        [TRXNO] [int] IDENTITY(1,1) NOT NULL,
       [ACTKEY] [int],
      [ACTINDX] [int] NOT NULL,
      [ACTNUMBR_1] [char](11) NOT NULL,
      [YEAR1] [smallint] NOT NULL,
      [PERIODID] [smallint] NOT NULL,
      [PERDBLNC] [numeric](19, 5) NOT NULL,
      [CRDTAMNT] [numeric](19, 5) NOT NULL,
      [DEBITAMT] [numeric](19, 5) NOT NULL,
      [TRXNO] ASC
Question by:AXISHK
    LVL 21

    Accepted Solution

    I never done that and I don't think it's the best way, but since you don't have a date column, you can create another calculated column using the 2 values of the year and period, and do the same in your time table, set the right relationship and I think that would do.

    Author Closing Comment


    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Join & Write a Comment

    Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now