Skip to content

Get the most out of MSSQL !

Consultant & Trainer for all things MSSQL

  • Home
  • Company
  • Business Intelligence
  • Simply Better Business

SSAS: Establishing the relationship between the Dimension and the Measure

Posted on July 28, 2014March 20, 2021 by jayanth.kurup

In the last post we had finished creating our measure and measure group and in the post before that we created a dimension. However our cube is still not ready to answer the question posed by the Business. In order to show the count of order against each card type we now need to establish a relationship between the dimension and the measure we created earlier.

This is done by navigating to the Dimension Usage Tab on the cube designer. In this case SSAS automatically identifies the relationship between the two tables on account of the primary key and foreign key relationship between the two tables. As shown below

On clicking the button next to Credit Card ID (which is the key column of the dimension and the column within the measure on which the data is being joined) we see the type of relationship that has been established.

In simple terms the above screen explains that the CreditcardId Column from the dimension table is mapped to the CreditcardId column in the measure Group table in a regular relationship. This is the most common type of relationship and a well-designed cube will usually have a majority of the relationships in this type. There are other types of relationships which we will explore later.

If you click the advanced button on the above screen you will see something like this.

This screen summarizes the information about what dimension columns are participating in this relationship. The most important option in this screen is the use of the Null Processing drop down. Frequently in an OLAP system there will be a number of data quality issues that need to be addressed, these could be because of human error, machine error or just a delay in getting the data synced. In such cases there is always a possibility that a measure may contain a value which doesn’t exist in the dimension. Normally in a traditional database this would result in a Primary Key foreign key violation and would not be possible. However when it comes to data warehousing we need to still retain this information in order to make sure the results are accurate. We can do this by setting the Null processing option, usually we would default to Unknown since the value is not defined (the traditional meaning of NULL). Else we have other options such as Preserve in which case the value is stored as it is but won’t map the dimension. Error means we get errors similar to the database. Zero or Blank means the value gets default to 0 or Blank value and Automatic is the default options as specified by the user. Let us leave it at Unknown member and press OK.

Please Consider Subscribing

Subscribe

CategoriesDatabasesTagsaccount, address, administration, age, AI, Analysis Services, answer, app, AWS, Azure, azurewebsites, Bangalore, Bengaluru, BigData, BLR, Business Intelligence, button, CaL, call, card, card type, case, cause, Cloud, column, Consultant, Consulting, Corporate, count, CREATE, cred, credit card, CreditCardid column, cube, cube design, cube designer, Data, data warehousing, database, default option, defined, designer, development, dimension, dimension table, drop, Enabled Business Solutions, enabledbusiness, error, expert, fine, Finish, foreign key relationship, form, format, group, Human, index, India, info, information, issue, issues, Jayanth, key, key column, Kurup, last post, lie, machine, majority, Mary, mean, meaning, measure, measure group, measure group table, member, Migration, ML, ms sql server, MSBI, MSSQL, MYSQL, need, network, NULL, number, OLAP, OLAP system, option, Oracle, part, png, post, power pivot, Power Query, PowerApps, PowerBI, Powershell, pre, Press, PRIMARY, primary key, process, processing, Processing Option, Python, question, rate, RDBMS, red, relationship, Remote, result, security, set, show, sign, Simple, site, SQL 2000, SQL 2005, SQL 2008, sql 2008 r2, sql 2012, SQL 2014, SQL 2016, SQL 2017, SQl 2019, SSAS, SSIS, SSMS, SSRS, SUM, sync, sys, T-SQL, tab, Tables, term, thing, ton, tools, traditional database, trainer, Transact, tuning, type, Upgrade, uploads, usage, user, value, Very large database, Virtual, virtual machine, visual studio, VM, war, Web, website, Websites, windows, zero

jayanth.kurup

This post was written by Jayanth Kurup. A Microsoft SQL Server Consultant and Trainer based out of Bangalore, India. Jayanth has been working on MS SQL Server for over 15 years. He is a performance tuning and Business Intelligence expert. Having worked with companies like Microsoft, DELL, Wells Fargo, Thomson Reuters and many other fortune 100 companies. Some other technologies Jayanth works on include Microsoft Azure, PowerBI, Python and AWS. When he isn’t consulting or training, Jayanth like to travel, paint and read. He is also very active in social causes and the founder of Enabled Business Solutions. Visit his company by clicking the link in the menu or email him directly.

Post navigation

PreviousPrevious post: SSAS- Deploying the cube
NextNext post: Named Query in data source view

The Latest

  • Monty Hall Simulation using T-SQL April 5, 2022
  • Query to quickly profile a column February 7, 2022
  • Outlook 2019 keeps asking for password multiple times December 9, 2021
  • Part 2:- Learning T SQL for beginners – Datatypes September 28, 2021
  • Part 1:- Learning T SQL for beginners- SQL, Tables and Nulls September 27, 2021
  • Query to find execution time of Jobs July 28, 2021
  • A simple script to decapitalize Column names July 19, 2021
  • My personal side effects with Covishield June 27, 2021
  • Setting up and Configuring CUDA, CUDNN and PYTorch for Python Machine Learning. June 3, 2021
  • keras.utils.generic_utils’ has no attribute ‘populate_dict_with_module_objects May 30, 2021

Find By Category

  • Azure
  • Databases
  • Events
  • Performance Tuning
  • PowerBI
  • Uncategorized
  • Website Design

Archive

  • April 2022 (1)
  • February 2022 (1)
  • December 2021 (1)
  • September 2021 (2)
  • July 2021 (2)
  • June 2021 (2)
  • May 2021 (2)
  • April 2021 (5)
  • March 2021 (10)
  • January 2021 (2)
  • November 2020 (2)
  • October 2020 (3)
  • September 2020 (4)
  • August 2020 (6)
  • July 2020 (1)
  • June 2020 (32)
  • May 2020 (18)
  • April 2020 (2)
  • March 2020 (4)
  • February 2020 (5)
  • January 2020 (1)
  • December 2019 (1)
  • November 2019 (14)
  • October 2019 (3)
  • September 2019 (1)
  • July 2019 (3)
  • June 2019 (2)
  • May 2019 (1)
  • April 2019 (2)
  • March 2019 (1)
  • January 2019 (4)
  • December 2018 (2)
  • November 2018 (4)
  • September 2018 (6)
  • August 2018 (2)
  • July 2018 (3)
  • June 2018 (4)
  • May 2018 (1)
  • April 2018 (4)
  • March 2018 (3)
  • February 2018 (3)
  • January 2018 (1)
  • December 2017 (2)
  • November 2017 (4)
  • August 2017 (2)
  • July 2017 (5)
  • May 2017 (1)
  • March 2017 (3)
  • January 2017 (3)
  • December 2016 (2)
  • November 2016 (2)
  • October 2016 (4)
  • September 2016 (1)
  • August 2016 (1)
  • July 2016 (1)
  • June 2016 (1)
  • May 2016 (2)
  • April 2016 (1)
  • March 2016 (14)
  • February 2016 (10)
  • January 2016 (19)
  • December 2015 (3)
  • November 2015 (5)
  • October 2015 (10)
  • September 2015 (9)
  • August 2015 (16)
  • July 2015 (13)
  • June 2015 (4)
  • May 2015 (2)
  • April 2015 (2)
  • March 2015 (7)
  • February 2015 (3)
  • January 2015 (22)
  • December 2014 (1)
  • November 2014 (5)
  • October 2014 (12)
  • September 2014 (5)
  • August 2014 (7)
  • July 2014 (41)
  • June 2014 (9)
  • May 2014 (12)
  • April 2014 (32)

Members Only

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress