Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 Tabular Modeling Cookbook

You're reading from   Microsoft Tabular Modeling Cookbook No prior knowledgeof tabular modeling is needed to benefit from this brilliant cookbook. This is the total guide to developing and managing analytical models using the Business Intelligence Semantic Models technology.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781782170884
Length 320 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Paul te Braak Paul te Braak
Author Profile Icon Paul te Braak
Paul te Braak
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting Started with Excel FREE CHAPTER 2. Importing Data 3. Advanced Browsing Features 4. Time Calculations and Date Functions 5. Applied Modeling 6. Programmatic Access via Excel 7. Enterprise Design and Features 8. Enterprise Management 9. Querying the Tabular Model with DAX 10. Visualizing Data with Power View A. Installing PowerPivot and Sample Databases Index

Using projection to combine data from different tables


The evaluation of an entire table (as shown in the previous recipe, Retrieving data from a single table) excludes the wider concept of projection, because the example returns all the columns from a single table. More often than not, we wish to return only a subset of columns (or perhaps even derived columns) from one or more tables. Unlike SQL, which allows projection in its syntax, DAX has no succinct projection equivalent.

Consider the following SQL statement, which selects column_a from table_a and column_b from table_b.

Select table_a.column_a, table_b.column_b From …

Using DAX, we cannot specify a projection in the same manner (as follows):

Evaluate('table_a'[column_a], 'table_b'[column_b])

If we wish to mimic this activity using DAX, we must define the table as part of the evaluate statement. This recipe examines how to do that.

Getting ready

This recipe shows the concepts of projection by answering a common type of question (from our...

lock icon The rest of the chapter is locked
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