{"id":10320,"date":"2019-09-06T00:00:00","date_gmt":"2019-09-06T05:00:00","guid":{"rendered":"https:\/\/threecloud.wpengine.com\/post\/how-to-build-a-tabular-model\/"},"modified":"2022-11-30T09:25:23","modified_gmt":"2022-11-30T15:25:23","slug":"how-to-build-a-tabular-model","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/how-to-build-a-tabular-model\/","title":{"rendered":"How to Build a Tabular Model in SSAS"},"content":{"rendered":"<p>In the release of SQL Server 2012, Microsoft introduced the SQL Server Analysis Services (SSAS) tabular model, a database that runs in-memory or in Direct Query mode. These databases display data with relational data sources. Allowing them to deliver a quick and powerful way of providing self-service Business Intelligence to client applications such as Microsoft Power View and Microsoft Excel.<\/p>\n<\/p>\n<p><strong>Knowing how to build these databases or Tabular models is one thing but knowing how to build a Tabular model the right way is something completely different. Today, I want to demonstrate 5 steps on how to build a Tabular model in SSAS and how to deploy to a local instance.<\/strong><\/p>\n<p>So, let\u2019s get started<\/p>\n<p><strong>Step 1:<\/strong> Create a new project in Visual Studio. Select Tabular, hit next and give the project a name. I suggest testing your connectivity before going on to step two.<\/p>\n<p><strong>Step 2:<\/strong> Import your data into Visual Studio and connect to SQL Server or a local instance. I connected to Adventure Works. Test your connection then use our Windows Server login and choose a couple of tables. These tables will confirm that we have data and a relationship to work with.<\/p>\n<p><strong>Step 3:<\/strong> Create a measure and a short DAX expression. Check the mark to confirm the measure is valid. Be sure to save often during this process.<\/p>\n<p><strong>Step 4:<\/strong> In Solution Explorer right-click on the solution and bring up properties. In these properties confirm the location of where you want to deploy. In my demo I am deploying to a local Analysis Services Server but you can also deploy to an Azure Analysis Server Instance by placing the name of that in the Server field.<\/p>\n<p>In this case, I change my processing settings from default; if you\u2019re like me and want to control when your processing happens, change the processing settings to Do Not Process and click OK.<\/p>\n<p><strong>Step 5:<\/strong> Click on Build Solution. Hit deploy and this will allow you to deploy to your target environment. Please note it may take a few seconds to deploy to your target destination and don\u2019t forget to confirm after your solutions have been deployed.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ch6gOBjkWto\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>I hope these 5 steps have helped you in creating a Tabular model.<\/p>\n<p><strong>Need further help? Our expert team and solution offerings can help your business with any Azure product or service, including Managed Services offerings. Contact us at 888-8AZURE or\u00a0 <a href=\"mailto:sales@3cloudsolutions.com\">sales@3cloudsolutions.com<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the release of SQL Server 2012, Microsoft introduced the SQL Server Analysis Services (SSAS)&mldr;<\/p>\n","protected":false},"author":41,"featured_media":9209,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[260],"tags":[],"class_list":["post-10320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/10320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=10320"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/10320\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/9209"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=10320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=10320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=10320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}