Archive
Add a BI Semantic Model Connection Content Type to a Library
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.
- In General Settings, click Advanced settings.
Click Yes and OK
On the same page under content type click
Add Different Content Types
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-
Click on BISM Connection – SSAS tabular Instance –
or you can use PowerPivot workbook
PowerPivot Workbook.
Format – workbook URL – http://localhost/PowerPivot Gallery/Book1.xlsx
Add a BI Semantic Model Connection Content Type to a Library (PowerPivot for SharePoint)
References –
DAX-SUMMARIZE (ROLLUP)
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]))
Red Box shows the sub-total of Categories further Brown Box shows Total of all Categories across all years.
DAX – SUMMARIZE Statement
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 –
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]
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]
SQL Server Virtual Labs
One place where you can learn all new features of SQL 12 without even installing single component on your machine.
Virtual Labs enable you to quickly evaluate and test Microsoft’s newest products and technologies through a series of guided, hands-on labs that you can complete in 90 minutes or less. There is no complex setup or installation required, and you can use Virtual Labs online immediately, free.
http://www.microsoft.com/sqlserver/en/us/learning-center/virtual-labs.aspx
It takes 4 Clicks to Build a Model (Cube) in Denali Tabular Mode
Click 1 – Create a Tabular Project
Click 2 – Import Tables (Master / Facts) from DW
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])
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)
In PivotTable – Selected Color (Product – Color) Attribute and two Measures which we had created