Category Archives: Tabular Model

Include post related to SQL Server 2012, BI Semantic Tabular Model

SQL Server 2017 Adventure Works Multidimensional Cube

It is easy to find Adventure Works scripts for OLTP and DW databases. But it sometimes tricky to find either solution to the Adventure Works Multidimensional Cube and Tabular or backup files.

So solve this problem for you I am sharing links to the abf files for quick access. This post is part 2 of last post on SQL Server 2017 quick setup. With SSAS and Tabular model sample databases you will be perfectly able to handle testing and development samples.

Go to : https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks-analysis-services

and at the very end of the article you will find the link for Adventure Works Analysis Services databases samples. Backups will be working for SQL Server 2016 and later versions. Tested by me.

Analysis Services database backups:

  1. adventure-works-multidimensional-model-full-database-backup.zip  – You get two backups Enterprise and Standard. I have both restored.
  2. adventure-works-tabular-model-1200-full-database-backup.zip  – You get only Sales data Tabular Model

 

Analysis services projects:

  1. adventure-works-multidimensional-model-project.zip
  2. adventure-works-tabular-model-1200-project.zip

Enjoy!! easy download then restore and you have working cubes for testing and working.

Let me know if there is any hiccup while you do all the setups from SQL Server 2017 to Adventure Works databases. Waiting for comments with appreciation or criticism.

 

Missing out on SSAS Data Source Views

We usually don’t give much importance to the Data Source Views (DSV). But if we work on it properly, it makes your life very easy.

Refer to few of the following notes on DSV, which might help in making it more useful for your project.

  1. Its only DSV where you can pull multiple data sources tables. This is the only place where you bring multiple data sources table in 1 DSV and later use in cube. how else ?? 😛
  2. While creating manual DSV (New Diagram), you can pull one table only and then add related tables one by one (option is Right Click–> Show related tables). So you for example you can literally pull a fact table and call related tables for related dimensions. Also for those dimension call related tables for snow flake tables and in the end get one good quality Diagram without much hassle.
  3. You also get to see original name of column even if you change to Friendly  Name for it (doesn’t work for table though). Following is the screenshot of how column name appears after renaming it. Table is also renamed from original DimGeography but only new name appear.
  4. you might want to see only original name, to avoid any confusion with table or column or may be just want to know what came from source. Right Click –> un-check option Show Friendly Names.
  5. You cannot delete a column just by Click–>Delete on DSV. Change the table to Named Query and remove the column from list of SELECT is your option.
  6. DSV always warn you for incorrect relationships. For example, where it should be Many to one or one to many, Matching data type warning etc. Always listed to these warning. This is your practice ground for dimension usage relationships.
  7. Did you use Zoom –> To Fit option ? If not then try it thank me later.
  8. You can also manipulate values in Explore Data. Like select random or top sorted sample. Even increase/decrease the number of sample rows, by default its 5000. To achieve this, Explore Data for a table and in window with sample click on Setting option and manipulate as your choice (Don’t forget to click on refresh button to sample, all highlighted in following screenshot).
  9. If you are new to SSAS DSV or tutoring, use Name Matching Criteria for quick relationships from tables pulled from data source. Click anywhere on DSV and look at properties with NameMatchingCriteria.

I could talk about some more interesting DSV related things, but length of the post is a concern. Let me know if you need details on these or anything more under comments section.