{"id":15959,"date":"2017-01-19T18:02:00","date_gmt":"2017-01-20T02:02:00","guid":{"rendered":"https:\/\/devwww.3cloudsolutions.com\/post\/demo-day-deriving-dimensions-in-power-query-2\/"},"modified":"2024-01-03T16:02:29","modified_gmt":"2024-01-04T00:02:29","slug":"demo-day-deriving-dimensions-in-power-query","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/demo-day-deriving-dimensions-in-power-query\/","title":{"rendered":"Demo Day: Deriving Dimensions in Power Query"},"content":{"rendered":"<p>In today&#8217;s self-serve Bl world, it&#8217;s common to need to analyze or mash up data from a huge variety of sources. Sometimes data arrives in a nice, clean and structured form, but it may also be delivered in a very basic flat file extract or single database tables. Power Query (also known as <a href=\"https:\/\/support.office.com\/en-GB\/article\/Get-Transform-in-Excel-2016-881c63c6-37c5-4ca2-b616-59e18d75b4de\">Get and Transform<\/a> in Excel 2016) is a great way to shape data into a clear and more convenient form for analysis.<\/p>\n<p><!--more--><\/p>\n<p style=\"text-align: center;\"><strong><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/iStock-508901890edited.png\" alt=\"iStock-508901890edited.png\" width=\"805\" height=\"509\" \/><br \/>\n<\/strong><\/p>\n<p>You may have to take a flat file data extract, perhaps pulled from some source database or a public data set, and shape it into a small star composed of a fact table surrounded by related dimension tables. In a Demo Day video, I&#8217;ve taken a slice of Microsoft&#8217;s new <a href=\"https:\/\/github.com\/Microsoft\/sql-server-samples\/releases\/tag\/wide-world-importers-v1.0\">World Wide Importers SQL Server 2016 sample data<\/a> and made a mock data extract, stored in a single CSV file, to emulate this scenario.<\/p>\n<h2>Making Dimensions and Facts<\/h2>\n<p>After downloading the <a href=\"https:\/\/cdn2.hubspot.net\/hubfs\/257922\/Blog\/ExpandedDimensionsSourceData.csv\" target=\"_blank\" rel=\"nofollow noopener\">sample data<\/a> or finding a data sample of your own, follow along in <a href=\"https:\/\/powerbi.microsoft.com\/en-us\/\">Power BI<\/a> with the short video below to learn how to:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Import your original data and identify columns to make into dimensions.<\/li>\n<li>For each of those dimensions, make a copy of the table that isolates the distinct values from the column(s), and numbers them with Add Index.<\/li>\n<li>Join the original data to the dimensions using the text columns for matching.<\/li>\n<li>Expand the matching ID values, and remove the corresponding text columns, to make a neat, compact fact table.<\/li>\n<li>Analyze!<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p style=\"text-align: left;\">For more information or to learn more about analyzing data, <a href=\"\/get-started\/\">contact 3Cloud<\/a> today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In today\\&#8217;s self-serve Bl world, it\\&#8217;s common to need to analyze data from a huge variety of sources. Check out the demo video to learn how to derive dimensions.<\/p>\n","protected":false},"author":21,"featured_media":14730,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[260],"tags":[273],"class_list":["post-15959","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai","tag-power-bi","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15959","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\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=15959"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15959\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/14730"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=15959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=15959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=15959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}