Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

You're reading from   Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide Get to grips with Microsoft Business Intelligence and Data Warehousing technologies using this practical guide

Arrow left icon
Product type Paperback
Published in May 2014
Publisher
ISBN-13 9781849688888
Length 350 pages
Edition Edition
Arrow right icon
Authors (2):
Arrow left icon
Reza Rad Reza Rad
Author Profile Icon Reza Rad
Reza Rad
Abolfazl Radgoudarzi Abolfazl Radgoudarzi
Author Profile Icon Abolfazl Radgoudarzi
Abolfazl Radgoudarzi
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Data Warehouse Design 2. SQL Server Analysis Services Multidimensional Cube Development FREE CHAPTER 3. Tabular Model Development of SQL Server Analysis Services 4. ETL with Integration Services 5. Master Data Management 6. Data Quality and Data Cleansing 7. Data Mining – Descriptive Models in SSAS 8. Identifying Data Patterns – Predictive Models in SSAS 9. Reporting Services 10. Dashboard Design 11. Power BI 12. Integrating Reports in Applications Index

Time for action – creating a Named Calculation


In this exercise, we will create a new calculated column in the DSV for the full name because the customer dimension only contains the first name and last name separately. You will see how we can use T-SQL commands to create a Named Calculation. Perform the following steps to create a Named Calculation.

  1. Go to the Adventure Works DW2012 DSV designer.

  2. In the Customer dimension, you can see that there are three name columns as First name, Middle name, and Last name, but there is no full name. We want to have the full name shown as the main customer attribute of the customer dimension in the cube. So, we will create a column in DSV for that.

  3. Right-click on DimCustomer and select New Named Calculation.

  4. Set the column name as Full Name, and write the following code in the expression area:

    FirstName+' '+ISNULL(MiddleName+' ','')+LastName
  5. Click on OK and you will see the new column added to the table. Right-click on DimCustomer and select Explore Data. Some...

You have been reading a chapter from
Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide
Published in: May 2014
Publisher:
ISBN-13: 9781849688888
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image