Archive

Posts Tagged ‘SQL 12’

Add a BI Semantic Model Connection Content Type to a Library

January 27, 2012 1 comment

I had hard time in performing these steps in the absence of Screen Shots, so thought of adding this post with Screen Shots.

A BI semantic model connection is created in SharePoint and provides redirection to business intelligence semantic model data in a PowerPivot workbook or Analysis Services tabular model database on a network server. Before you can create a BI semantic model connection in SharePoint, you must extend a document library to allow the creation of a .bism file. This step only needs to be performed once for each library, but you will need to repeat it for any library from which you want to create .bism files. Best practices recommend that you create a centralized library for storing .bism files so that you can manage permissions in one place.

If you already use SharePoint Data Connection Libraries, the BI Semantic Model Connection content type is automatically added to that library template. You can skip the steps in this section if you use a data connection library that already lets you create new BI semantic model connection documents.

You must have at least the Manage Lists permission to add and configure a content type. This permission is built into the Design permission level and above.

  • Open the document library for which you want to enable the BI Semantic Model Connection content type.
  • On the SharePoint ribbon, in Library Tools, click Library.
  • Click Library Settings.

clip_image002[10]

  • In General Settings, click Advanced settings.

clip_image004[8]

Click Yes and OK

clip_image006[8]

On the same page under content type click

clip_image008[5]

Add Different Content Types

clip_image010[7]

To verify you added the content type, go back to the library and click New Document on the Documents area of the library ribbon. You should see BI Semantic Model Connection File in the New Documents list-

clip_image012[10]

Click on BISM Connection – SSAS tabular Instance –

clip_image014[5]

or you can use PowerPivot workbook

PowerPivot Workbook.

Format – workbook URL – http://localhost/PowerPivot Gallery/Book1.xlsx

clip_image016[5]

Add a BI Semantic Model Connection Content Type to a Library (PowerPivot for SharePoint)

References –

Advertisement

DAX-SUMMARIZE (ROLLUP)

January 11, 2012 1 comment

The following example adds roll-up rows to the Group-By columns of the SUMMARIZE function call.

EVALUATE SUMMARIZE( ‘Internet Sales’,
ROLLUP (‘Date'[Calendar Year],Product[Product Category Name]),
“Sales”, ([Internet Total Sales]),
“Tax”,([Internet Total Tax Amount]))

image

Red Box shows the sub-total of Categories further Brown Box shows Total of all Categories across all years.

Categories: BISM, DAX, SQL 12, Tabular Mode Tags: , ,

DAX – SUMMARIZE Statement

January 11, 2012 4 comments

 

SUMMARIZE function returns a summary table for the requested totals over a set of groups. Readers familiar with T-SQL SELECT statement, this is the equivalent of writing a query using the GROUP BY clause.

Syntax –

SUMMARIZE(<table>, <groupBy_columnName>[, <name>, <expression>]…)

Demo –

The Following example returns summary of the Internet Sales grouped around Country, Category & Calendar

EVALUATE SUMMARIZE( ‘Internet Sales’,
Geography[Country Region Name],
Product[Product Category Name],
‘Date'[Calendar Year],
“Internet Total Sales”,
‘Internet Sales'[Internet Total Sales])

Notice you do not need to define the relationships between tables when using SUMMARIZE because the relationship is defined in the model.

Output –

image

Currently I am getting expected output but output is not sorted for sorting I need to use another function – Order By

EVALUATE SUMMARIZE( ‘Internet Sales’,
Geography[Country Region Name],
Product[Product Category Name],
‘Date'[Calendar Year],
“Internet Total Sales”,
‘Internet Sales'[Internet Total Sales])
ORDER BY Geography[Country Region Name], Product[Product Category Name],’Date'[Calendar Year]


image

Further I can add measure to Order By –EVALUATE SUMMARIZE( ‘Internet Sales’,
Geography[Country Region Name],
Product[Product Category Name],
‘Date'[Calendar Year],
“Internet Total Sales”,
‘Internet Sales'[Internet Total Sales])
ORDER BY                                                                                                                                                                                         Geography[Country Region Name], Product[Product Category Name],’Date'[Calendar Year], ‘Internet Sales'[Internet Total Sales]

image

 

 

 

Categories: BISM, DAX, SQL 12, Tabular Mode Tags: , ,

It takes 4 Clicks to Build a Model (Cube) in Denali Tabular Mode

December 25, 2011 2 comments

Click 1 – Create a Tabular Project

image

Click 2 – Import Tables (Master / Facts) from DW

image

image

Click 3 – Adding Measure

As you can see I have added 2 Measures –

Sum (TotalProductCost)

Sum of TotalProductCost:=SUM([TotalProductCost])

Sum of SalesAmount:=SUM([SalesAmount])

image

Click 4 – Viewing Cube in Excel

Click on Excel Symbol on Tool Bar, this will open Cube in Pivot Table

(Ensure that Excel is installed in your workstation)

image

In PivotTable – Selected Color (Product – Color) Attribute and two Measures which we had created

image

image