<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6339592208449055941</id><updated>2026-04-01T02:20:19.124-05:00</updated><category term="Power Query"/><category term="Best Practice"/><category term="Power Pivot"/><category term="Intro Series PQ"/><category term="Intro Series PwrPvt"/><category term="Troubleshooting"/><category term="PowerBI"/><category term="Getting Started"/><category term="Measures"/><category term="Excel"/><title type='text'>The CPA Revolution</title><subtitle type='html'>Finance and Accounting Excel users: Revolutionize with Power Query, Power Pivot, and PowerBI</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-4358172870725440044</id><published>2023-11-13T15:22:00.000-06:00</published><updated>2023-11-13T15:22:06.211-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Getting Started"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerBI"/><title type='text'>Hire a PowerBI guru</title><content type='html'>&lt;div&gt;I&#39;ve recently hired a PowerBI analyst to join my team in my full-time industry job. In 3 short months, he&#39;s built 3 amazing PowerBI dashboards that have given us tremendous insight in to our accounting data such as the composition of our Journal Entries, our fluctuation (flux) explanations, and our Month End Close Status. It&#39;s been a tremendous win.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;He started his career as a data engineer, and then taught himself PowerBI from materials like this available online. He&#39;s already been awarded our company&#39;s high honor quarterly CFO award: the first time someone on my team has won in the last three years. I&#39;ve been trying to teach accountants how to use these Power tools, but hiring someone who has already made the effort, has been a huge win. I can&#39;t wait until the market starts to have more people like him available as they are a key part of my accounting strategy for winning.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So my key takeaway, hire a PowerBI guru if you can. Make the case; they will quickly pay for themselves with their insights (and make you look like a rockstar)!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And if you are the guru already, send me a message, and let&#39;s talk. Maybe I have a project or work that you can help me with.&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/4358172870725440044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2023/11/hire-powerbi-guru.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4358172870725440044'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4358172870725440044'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2023/11/hire-powerbi-guru.html' title='Hire a PowerBI guru'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-9113332221593692996</id><published>2023-06-13T10:12:00.003-05:00</published><updated>2023-06-13T10:12:29.285-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerBI"/><title type='text'>How Do You Learn Best?</title><content type='html'>&lt;div&gt;Since building this blog, I&#39;ve wondered what&#39;s the best way to get this information out to the masses of accountants and finance professionals who could really benefit from the automation that PowerBI, Power Query and Power Pivot provide.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the beginning I tinkered with making some videos and doing live presentations, but I got a lot of feedback that people needed step-by-step instructions and use cases so they could play with the tools and make them their own. However, I wonder what&#39;s the best way for you to learn?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Leave me your vote in the comments.&lt;/div&gt;&lt;div&gt;A. Videos posted on this blog, YouTube, or even TikTok (yikes)&lt;/div&gt;&lt;div&gt;B. Live instruction&lt;/div&gt;&lt;div&gt;C. This blog&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2023/04/transforming-pdf.html&quot;&gt;Transforming a PDF&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: Coming soon&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/9113332221593692996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2023/06/how-do-you-learn-best.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/9113332221593692996'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/9113332221593692996'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2023/06/how-do-you-learn-best.html' title='How Do You Learn Best?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Minneapolis, MN, USA</georss:featurename><georss:point>44.977753 -93.2650108</georss:point><georss:box>16.667519163821154 -128.4212608 73.287986836178845 -58.1087608</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-5955635333485840431</id><published>2023-04-07T01:36:00.009-05:00</published><updated>2023-06-13T09:38:40.227-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerBI"/><title type='text'>Transforming a PDF</title><content type='html'>For this next exercise, we will build our PowerBI skills further, automating cleaning up the data within the PowerBI application.&amp;nbsp;The post is a continuation of the work that was started in the post,&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2022/09/convert-pdf-using-powerbi.html&quot; style=&quot;text-align: left;&quot;&gt;Convert PDF Using PowerBI&lt;/a&gt;. In the original exercise, we took a PDF file and converted it to a visualization using PowerBI; now, we will perform transformation work to the PDF file before reloading it to the data visualization.&amp;nbsp;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2&gt;The Scenario&lt;/h2&gt;&lt;div&gt;In this series of exercises, the goal is to pull a list of all names from a PDF. In the first exercise, we just loaded the data as is; however, if you compare the source PDF file to the final visualization, many of the names are missing, with the PowerBI visualization matrix only displaying the names that start from the PDF section &lt;i&gt;Randy Travis&lt;/i&gt;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwm5gy7Tw9cwZZlQuXu8cD_9U36e6kir29AELt1DKflDOk48N83uH4cTihcUuS0U88tw-43nQSFINQd9rh5pXG3BKwG7SZ1NRmw6E3dXnvxKvcAViX9XhycPex6zxugbno5DcX-yD59KDMBW2EVRWPfH4_Ig9zN1oH1UbsZAMuWTncZcdfg054oLOBZA/s1306/Compare%20PDF%20to%201st%20matrix.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;486&quot; data-original-width=&quot;1306&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwm5gy7Tw9cwZZlQuXu8cD_9U36e6kir29AELt1DKflDOk48N83uH4cTihcUuS0U88tw-43nQSFINQd9rh5pXG3BKwG7SZ1NRmw6E3dXnvxKvcAViX9XhycPex6zxugbno5DcX-yD59KDMBW2EVRWPfH4_Ig9zN1oH1UbsZAMuWTncZcdfg054oLOBZA/w640-h238/Compare%20PDF%20to%201st%20matrix.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;To begin the transformation process, let&#39;s start where we left off in the prior PDF lesson: with the &lt;a href=&quot;https://1drv.ms/u/s!AsH5A836kUFPh4R8Ajd7X6_DZlIT5A?e=RqSMBY&quot; target=&quot;_blank&quot;&gt;Solution&lt;/a&gt;&amp;nbsp;file. Open the Solution PowerBI file (or your prior exercise workbook), and then navigate to the PowerQuery Editor within PowerBI by selecting the query &lt;i&gt;Table025 (Page 11).&lt;/i&gt; Right click and select &quot;Edit Query&quot;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlI8s47MNITy7zV7h0vTEU9V-py894ZIikBY-BOlsPaFidl6tCxWUleWTuVbWiVKwMccaSfZJ1q1sgR0CTlXY6-Aqz3e00UJFmWsrpSi8Zpg-yJWHl0McPrCBjfWWxXi7j7fJYLItiUAvrANKi_dwS9K2zfm3Mx__LOKrkDGyuvlohalhywd05wxD7gw/s287/Open%20PowerQuery%20Editor%20in%20PBI.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;287&quot; data-original-width=&quot;240&quot; height=&quot;287&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlI8s47MNITy7zV7h0vTEU9V-py894ZIikBY-BOlsPaFidl6tCxWUleWTuVbWiVKwMccaSfZJ1q1sgR0CTlXY6-Aqz3e00UJFmWsrpSi8Zpg-yJWHl0McPrCBjfWWxXi7j7fJYLItiUAvrANKi_dwS9K2zfm3Mx__LOKrkDGyuvlohalhywd05wxD7gw/s1600/Open%20PowerQuery%20Editor%20in%20PBI.png&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Process the data&lt;/h2&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;You&#39;ve now entered the Power Query Editor: the same one used for Power Query in Excel.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Looking at the data, there&#39;s a few things we need to address to get to our goal: a list of all names.&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXTQVcoQyhYmCvkoKkhVI8T33R9cVN0ebdmeZp1uwYqBB1iiqyAzr7gFM3No9q0fihQNSZFaRJffyCUoVyyPi1SIeX_NvpOyhPAUuf8M68-6G0r7KeUlR8FdKNXO66bteaarenD4Lu8qJr1omt7Fk-M6ihwpPWfnhUT3w44lDxsRenhG_UXG_5eTHq2Q/s1680/PowerQuery%20Editor.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;707&quot; data-original-width=&quot;1680&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXTQVcoQyhYmCvkoKkhVI8T33R9cVN0ebdmeZp1uwYqBB1iiqyAzr7gFM3No9q0fihQNSZFaRJffyCUoVyyPi1SIeX_NvpOyhPAUuf8M68-6G0r7KeUlR8FdKNXO66bteaarenD4Lu8qJr1omt7Fk-M6ihwpPWfnhUT3w44lDxsRenhG_UXG_5eTHq2Q/s16000/PowerQuery%20Editor.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Column2 has a rouge name (&lt;i&gt;Nicole Lopez&lt;/i&gt;).&lt;/li&gt;&lt;li&gt;Column1 includes characters (i.e, 2019-10) preceding the name.&lt;/li&gt;&lt;li&gt;Columns 1, 2 &amp;amp; 6 each contain names, but we them all in a single list..&lt;/li&gt;&lt;/ul&gt;Let&#39;s tackle these clean-up items one-by-one.&amp;nbsp;&lt;/div&gt;&lt;h4&gt;&lt;i&gt;Addressing the rouge Name in&amp;nbsp;&lt;/i&gt;&lt;i&gt;Column2&lt;/i&gt;&lt;/h4&gt;&lt;div&gt;To fix the name hanging out by itself in Column2, we will combine Column1 and Column2, by adding a Conditional Column. The Conditional Column will be called &quot;1st column&quot; and will look at Column2 and if Column2 has a value of &lt;i&gt;null, &lt;/i&gt;then populate [1st column] with the value from Column1. If not &lt;i&gt;null, &lt;/i&gt;then it will populate the value from Column2. This is very similar to the manual Excel process of creating a new column and then using an IF statement to populate each row.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHA_J_z96cLAyf7L0flbrI66OYpddot8hKCZ5Ce7tCbJ5ohdf9LV6crzElPyRmHtdECwh45h3EpWamfevAbCsy2iFrqkOn654r9kpqakoMC_7vJddnQ2dOZ4po4s3K8rziDHhOItKzD_CtmQ2FlhDUHI5KGDvluJ4x6W69S4diYs7Lf--jBjS-jgSbAg/s465/Column2%20issue.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;406&quot; data-original-width=&quot;465&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHA_J_z96cLAyf7L0flbrI66OYpddot8hKCZ5Ce7tCbJ5ohdf9LV6crzElPyRmHtdECwh45h3EpWamfevAbCsy2iFrqkOn654r9kpqakoMC_7vJddnQ2dOZ4po4s3K8rziDHhOItKzD_CtmQ2FlhDUHI5KGDvluJ4x6W69S4diYs7Lf--jBjS-jgSbAg/s16000/Column2%20issue.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;ln the PowerBI Power Query Editor ribbon, select Add Column, then Conditional Column,&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyvfVYEa0cGjEsEoBhTixPLeS-0502wFnc4p1gGPIYm-_2RoyOlw5xgrqOQ801kPf-im5gpe0FMwmXazhq-iQMVIdhEaWMASAOFMy_A3jrCZSZb3ES_NbfSA_R9Itlg8EtLA_jMtTK26fMBVIbO9ErFzIMz2BG-00nn6RTExntc08worNoOZ8mSvA9jg/s392/Conditional%20Column%20option.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;176&quot; data-original-width=&quot;392&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyvfVYEa0cGjEsEoBhTixPLeS-0502wFnc4p1gGPIYm-_2RoyOlw5xgrqOQ801kPf-im5gpe0FMwmXazhq-iQMVIdhEaWMASAOFMy_A3jrCZSZb3ES_NbfSA_R9Itlg8EtLA_jMtTK26fMBVIbO9ErFzIMz2BG-00nn6RTExntc08worNoOZ8mSvA9jg/s16000/Conditional%20Column%20option.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;When the &quot;Add Conditional Column&quot; menu opens, populate the fields as shown in the image below. &lt;i&gt;Remember Power Query is case sensitive so &quot;null&quot; must be lowercase.&amp;nbsp;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gweOpoPa0qgafemsC7x3yQJcp5iaN3_OKvn6zHIWx2RMnxYD0tjSM9ZIJhSgBufXsWz267ywHnGs_MODyideEHiszk5dS4LGADTnc63w3VNVL4xMtmjdVA0_fSY6wKcRgnll4YELmY1Tu_LThDbKaElLE2i6B50giykhbIu7KQJ8M65UqXt4QliS4w/s1148/Conditional%20Column%20settings%20c2.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;1148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gweOpoPa0qgafemsC7x3yQJcp5iaN3_OKvn6zHIWx2RMnxYD0tjSM9ZIJhSgBufXsWz267ywHnGs_MODyideEHiszk5dS4LGADTnc63w3VNVL4xMtmjdVA0_fSY6wKcRgnll4YELmY1Tu_LThDbKaElLE2i6B50giykhbIu7KQJ8M65UqXt4QliS4w/s16000/Conditional%20Column%20settings%20c2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;After selecting &quot;OK&quot;, there will be an extra column named [1st column]. By default, Power Query always adds new columns to the far right of your dataset.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8mL9gizE8atdfzL4On0qY8Nnie1dS07vSc8QAwCZUjI47yNXnLOvmVnq_tjALasJ4_4rQ2VjL8bqtvFn4D0gGtH4Z1x50QpikpI0zHQ6i9W7rPtrUxwt8LEzPxCffcvFn8OqECSoxzf7NZj2aNNIas8ll76uiLWpTV3hPjw4ZEFMkulTIYUYo8pgT8g/s331/1st%20column%20after%20initial%20settings.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;331&quot; data-original-width=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8mL9gizE8atdfzL4On0qY8Nnie1dS07vSc8QAwCZUjI47yNXnLOvmVnq_tjALasJ4_4rQ2VjL8bqtvFn4D0gGtH4Z1x50QpikpI0zHQ6i9W7rPtrUxwt8LEzPxCffcvFn8OqECSoxzf7NZj2aNNIas8ll76uiLWpTV3hPjw4ZEFMkulTIYUYo8pgT8g/s16000/1st%20column%20after%20initial%20settings.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, we&#39;ve got the names from Column1 and Column2 in one column. However, we also have extra data (i.e., 2019-10) in the column that we need to remove. Time for the second cleanup exercise.&lt;/div&gt;&lt;h4&gt;&lt;br /&gt;&lt;/h4&gt;&lt;h4&gt;Remove digits preceding names&lt;/h4&gt;&lt;div&gt;To isolate the name, we need to remove the digits that precede them (i.e., 2019-10). We will use something similar to Excel&#39;s Text to Columns: Split Column by Delimiter.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Click on the header for the new column, [1st column], highlighting the entire column. In the ribbon, on the Home menu, select the Split Column option, then By Delimiter.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3MFbje54iCWp_X09q2BrGY0A4iCdKAL25n-c520VtvQh1Lzm9FY7srY6r_SNDXmJ_uVEXNHU4-qLhu-ZEMPyXlqTsWdCV5RV7cRVa_Gf7plgYGcJ8DW4xw5vNl1RH9qtS-hnxSbT5KAFaTjmIBonIJT3dXKSlQlVLXJDRaQuBmwLbCiAPP2qv2oz-rw/s666/Split%20column%20menu%20option.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;256&quot; data-original-width=&quot;666&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3MFbje54iCWp_X09q2BrGY0A4iCdKAL25n-c520VtvQh1Lzm9FY7srY6r_SNDXmJ_uVEXNHU4-qLhu-ZEMPyXlqTsWdCV5RV7cRVa_Gf7plgYGcJ8DW4xw5vNl1RH9qtS-hnxSbT5KAFaTjmIBonIJT3dXKSlQlVLXJDRaQuBmwLbCiAPP2qv2oz-rw/s16000/Split%20column%20menu%20option.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the Split Column by Delimiter menu, select Space from the drop down menu, and then Left-most delimiter. This will split [1st column] in to two columns based on the first space it finds, reading left to right. {I love the extra flexibility Split Column offers, such as Left-most, compared to the similar Excel version!}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmFOBaa22kxuHVzUXdQv9WpgiC29yaHWTx33ruJ-gzgKEhjBPRcIOQvOO8UjqrQ3OsPleHOCKUdZ-DSjrdNLVhoiVctEKuORrZfA1QzHcpMykganikx1nv1XERLbFa_3FvjrXD6KjBQVLvMEwIu7djLEH-2V6eLHbMpgXVNx8zqf5eNslOyzHkfUOCvQ/s412/Split%20Column%20by%20Space%20left.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;306&quot; data-original-width=&quot;412&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmFOBaa22kxuHVzUXdQv9WpgiC29yaHWTx33ruJ-gzgKEhjBPRcIOQvOO8UjqrQ3OsPleHOCKUdZ-DSjrdNLVhoiVctEKuORrZfA1QzHcpMykganikx1nv1XERLbFa_3FvjrXD6KjBQVLvMEwIu7djLEH-2V6eLHbMpgXVNx8zqf5eNslOyzHkfUOCvQ/s16000/Split%20Column%20by%20Space%20left.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;In the new column [1st column.2], the first few rows look as expected and appear to have achieved the objective. However, as you scroll further down, you can see that &quot;Nicole&quot; is separated from her last name &quot;Lopez&quot;. This happened because &quot;Nicole Lopez&quot; didn&#39;t have a space in front of it, and so the Left-most Space used to split the column was the space between &quot;Nicole&quot; and &quot;Lopez&quot;. There are several approaches we could take to address this issue, but for this exercise we will focus on modifying an existing formula.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ16pPVVN4j1im_Z1eMu5kW8R4gm3Wg1vrkcLq62koHgYF7_tXnZmv-Xyh7QJeCX-NXQuCDt94iOle-p91kXrXkvCiYtlZyVmI9CPvG09OkVJ5OoGOC8kX7PDvzlJAClchRPubSB3nUnb87g8lo8wv87uYVoUtXJsmxcWyw_c8pp_EThql-CSNw4e2mw/s411/Preview%20after%20Split%20Column.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;323&quot; data-original-width=&quot;411&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ16pPVVN4j1im_Z1eMu5kW8R4gm3Wg1vrkcLq62koHgYF7_tXnZmv-Xyh7QJeCX-NXQuCDt94iOle-p91kXrXkvCiYtlZyVmI9CPvG09OkVJ5OoGOC8kX7PDvzlJAClchRPubSB3nUnb87g8lo8wv87uYVoUtXJsmxcWyw_c8pp_EThql-CSNw4e2mw/s16000/Preview%20after%20Split%20Column.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h4&gt;&lt;i&gt;Modify Formula for Conditional Column&lt;/i&gt;&lt;/h4&gt;&lt;/div&gt;&lt;div&gt;When we created [1st column], we used the Conditional Column menu to create an if statement that returned Column2&#39;s value when Column2 had a value. But, if instead of returning just Column2&#39;s value, we returned Column1 + Column2, then the data in Column2 will look the same as Column1. Since the columns look the same after the revision, the Split Column by Delimiter step will work the same, resulting in the correct result for the name of &quot;Nicole Lopez&quot;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigEl1fcBfzh017YJS0dz3vrN_xKogiSkjmHLlZPFFQHZziGujauXC5GkQnWazM9JlDwtnlDe-xMhtcFY67-ZGR1b-HYIWX_PPlrSOlQG5E9nvXCjLg-4jkATeh7p2V0vRiFb-0MycyQVG8HOtzshACglmY1eTCc9m9KZrlh8008LoGKLYhwejBTsy3eQ/s992/Illustrate%20the%20formula%20change%20impact.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;75&quot; data-original-width=&quot;992&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigEl1fcBfzh017YJS0dz3vrN_xKogiSkjmHLlZPFFQHZziGujauXC5GkQnWazM9JlDwtnlDe-xMhtcFY67-ZGR1b-HYIWX_PPlrSOlQG5E9nvXCjLg-4jkATeh7p2V0vRiFb-0MycyQVG8HOtzshACglmY1eTCc9m9KZrlh8008LoGKLYhwejBTsy3eQ/s16000/Illustrate%20the%20formula%20change%20impact.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you haven&#39;t turned on your formula bar, go to the View menu on the ribbon and check the box &quot;Formula bar&quot;. This is a one time set-up.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now in the Applied Steps area of the Power Query Editor, select the step named &quot;Added Conditional Column&quot;.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitXCMYsqBpV3Duf6t7yj2AThFNXksQ1zI0bd2t_dldIOa7QyXdyrmm9SWPELZiHJnw6JvPgREu2FOETQuFJTzq82Ls6HP4c_AELwprdus9C2bmCg6diS01CAeAKpRUfG8736qnYab1Pj3Y--8L0IFHkmb5uBbuCjFvJNaYEdQvckqSi2gvbksRZUCD3A/s310/Applied%20Steps.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;140&quot; data-original-width=&quot;310&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitXCMYsqBpV3Duf6t7yj2AThFNXksQ1zI0bd2t_dldIOa7QyXdyrmm9SWPELZiHJnw6JvPgREu2FOETQuFJTzq82Ls6HP4c_AELwprdus9C2bmCg6diS01CAeAKpRUfG8736qnYab1Pj3Y--8L0IFHkmb5uBbuCjFvJNaYEdQvckqSi2gvbksRZUCD3A/s1600/Applied%20Steps.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Selecting an Applied Step changes the Preview to show the data how it looked after that step was performed, but before the subsequent steps. It also updates the formula bar to show the M language formula used to create that step.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHZdJAJUHct9iUwu-7IIiQo7QSnHJ73CiV2skRNR07t74ZAa_BqTnTH7Z9oz9IQK5_n5fVkcRY4PL1FTKM0u-eP2c7M_Dztv8pNO0o_mPpoifagFQs2dWnmuf0sfbVNsim8zgEXDiOXmq4y4A7s0yxpFWOxJCll-d2UkZAvQQ3IsnF10fr-IC_8chZdQ/s1063/Formula%20bar%20before%20altering.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;48&quot; data-original-width=&quot;1063&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHZdJAJUHct9iUwu-7IIiQo7QSnHJ73CiV2skRNR07t74ZAa_BqTnTH7Z9oz9IQK5_n5fVkcRY4PL1FTKM0u-eP2c7M_Dztv8pNO0o_mPpoifagFQs2dWnmuf0sfbVNsim8zgEXDiOXmq4y4A7s0yxpFWOxJCll-d2UkZAvQQ3IsnF10fr-IC_8chZdQ/s16000/Formula%20bar%20before%20altering.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Good news is that you don&#39;t have to learn the M language in order to make some easy changes using it. In this case, we are going to modify the portion referring to the results of the new Conditional Column. In the formula above, it says if [Column2] is not null then [Column2]. We&#39;ll modify the very end of the formula to say &quot;then [Column1]&amp;amp;[Column2]&quot;. You can make that change by directly typing in the formula bar above.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;An ampersand is used in Power Query to indicate &quot;and&quot;, or to join two words together. After pasting in the &quot;[Column1]&amp;amp;&quot; in the formula bar, it should read as follows. Now if we look at the [1st column], all columns have a &quot;2019-##&quot; and a name.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRK5-fQ2aM5GhCZfFpXHPV2hvURQWxAsUO2sRVbN59IfPprpPTrs2EyHJh6Zfx1i386ybzmrI2krEzu7xkZsexvlYQHOAP3Wu2-cJ2sR8mktjD4UALM3kAccboJvTuQqozmLtmDpmRajjt3HPROBpC1njHXuvekxxIOTF4JWPWeYc1zLm2ut1pZyk3w/s1152/1st%20Column%20with%20&amp;amp;.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;421&quot; data-original-width=&quot;1152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRK5-fQ2aM5GhCZfFpXHPV2hvURQWxAsUO2sRVbN59IfPprpPTrs2EyHJh6Zfx1i386ybzmrI2krEzu7xkZsexvlYQHOAP3Wu2-cJ2sR8mktjD4UALM3kAccboJvTuQqozmLtmDpmRajjt3HPROBpC1njHXuvekxxIOTF4JWPWeYc1zLm2ut1pZyk3w/s16000/1st%20Column%20with%20&amp;amp;.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the [1st column] there is one last issue left to clean-up: there is a space missing on Row 11. Similar to above, we are going to manually type in the instructions to the formula bar. To add text to a column in Power Query, surround texts by quotation marks. Adding a space then is, &quot; &quot;; quotation marks with a space between them. The final modified formula looks like this, and the person listed on Row 11, aligns with the other rows. Even better, you&#39;ve created the rules once, and if this ever occurs again in the future, the directions are written, and the process will be lightning fast.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5LdXymh8HnzQJ7Am_IvrSVgO8uq5FvcvkMw2HB_-Sbq95pepSAnaMaUN7gz_2ezh79vmyjQMxYXSTwPR0-cO5SRa8HpyCnDJrFYhxPHdhMOPm-XfUj_JxOFDoO9eQpqdh35ctXcLxlt4uGSN9_u58VhxXKZoGFf97-9_LJI68zXyLNtoq6FWBqX3aYw/s956/Full%20conditional%20formula.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;63&quot; data-original-width=&quot;956&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5LdXymh8HnzQJ7Am_IvrSVgO8uq5FvcvkMw2HB_-Sbq95pepSAnaMaUN7gz_2ezh79vmyjQMxYXSTwPR0-cO5SRa8HpyCnDJrFYhxPHdhMOPm-XfUj_JxOFDoO9eQpqdh35ctXcLxlt4uGSN9_u58VhxXKZoGFf97-9_LJI68zXyLNtoq6FWBqX3aYw/s16000/Full%20conditional%20formula.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;Remove other columns&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Power Query works faster when you remove any unnecessary columns. Since for this exercise all we need is a final list of names, we can tell Power Query to remove all other columns, leaving only the [1st column.2]. Do so by selecting [1st column.2], right clicking and selecting the option &quot;Remove Other Columns&quot;.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOVQ7zbTwkSULWGvu9plA-d7Jkc4hwji2L_2zlfockBEM2XMdvaoGx4HfbR_jsZLKceg1K7opzBYb0dy8WHmhnrJpHPdeyIynafJmiWMrET_imup0V7pHOxEnsQMaNm2Q4Xq6MZrt1805hvCK9Og2MZu2zPgpsXBKFYTm5IDRMDAr5qva3Mgmlvyfnhg/s437/Remove%20other%20columns3.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;140&quot; data-original-width=&quot;437&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOVQ7zbTwkSULWGvu9plA-d7Jkc4hwji2L_2zlfockBEM2XMdvaoGx4HfbR_jsZLKceg1K7opzBYb0dy8WHmhnrJpHPdeyIynafJmiWMrET_imup0V7pHOxEnsQMaNm2Q4Xq6MZrt1805hvCK9Og2MZu2zPgpsXBKFYTm5IDRMDAr5qva3Mgmlvyfnhg/s16000/Remove%20other%20columns3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;Combine columns within the same query&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We now have a column that shows all the cleaned-up names from Column1, but we need to add to it the names in Column6. The good news is that the Column6 names are already cleaned up, so no work is required there,&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For this trick, I&#39;m going to show you how to append a Table within the same query, combining the new [1st column] with Column6; in plain English, I&#39;m going to show you how to get the new Column1 and Column6 in to a single name column.&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s start by renaming [1st column.2] to &quot;Column6&quot;. This aligns the name of the two columns that contain names: the column we cleaned up and the original column6. The append functions combines columns together based on their headers, so ensure it&#39;s spelled exactly the same way including capitalization. Rename a column by double clicking the header.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7_QwY8l6qXX4jaVm2linn4P2eAok4FuipW3fA0foaJbattF9_iqzMRPlAh5sEHmCOogk1Lz3-hY5849aBvao_S07l9t5_RX9Gsw7DOBkfsNd-7SasOulYH6ptIAvdfR4MDNFbrHQ7MKYxstdKonMatPPYwq-HsQtyg8GCfXHtbGzPzL7drKNRl27FA/s247/Rename%20column.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;97&quot; data-original-width=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7_QwY8l6qXX4jaVm2linn4P2eAok4FuipW3fA0foaJbattF9_iqzMRPlAh5sEHmCOogk1Lz3-hY5849aBvao_S07l9t5_RX9Gsw7DOBkfsNd-7SasOulYH6ptIAvdfR4MDNFbrHQ7MKYxstdKonMatPPYwq-HsQtyg8GCfXHtbGzPzL7drKNRl27FA/s16000/Rename%20column.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Next, we will use the append function. In the ribbon, under Home, you&#39;ll find Append on the far right. Select the first option, Append Queries. Append makes a current list longer, by lining up data from multiple columns with the same headers.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizx2tIxXo_V3pZDO8lgR3_MoWu0W4z92XDG2MndxIRNe_ihw7DU4U77AbNoaawdy4pOcNbw4tD9N5vOKlsbdAoUV5sUgV93_4HUsJWa7zKP8rUc9Hc8ejeY6ak1iG56e3c4gXnNrOEJepSQn7_6SKkWxFDfNp6dRS5tJ8cBcqr-OMGchyQQRIkUDuxsQ/s1311/Append%20queries%20menu.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;116&quot; data-original-width=&quot;1311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizx2tIxXo_V3pZDO8lgR3_MoWu0W4z92XDG2MndxIRNe_ihw7DU4U77AbNoaawdy4pOcNbw4tD9N5vOKlsbdAoUV5sUgV93_4HUsJWa7zKP8rUc9Hc8ejeY6ak1iG56e3c4gXnNrOEJepSQn7_6SKkWxFDfNp6dRS5tJ8cBcqr-OMGchyQQRIkUDuxsQ/s16000/Append%20queries%20menu.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the pop-up Append menu, in the Table to append dropdown, select the current query, Table025 (Page 11). This option results in the query appending to itself. Notice in the preview area how the list of names restarts on row 17.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoeWmKA-GhrxToaACJI3m4P1yehyc8LWX_dkOnpE2tEAPUr0WELbx28BjMi-4Rfv-1Z5B0pnCuRlPUIRUSRnAAn4St6hblViO_tJYV1Ydokaq-Xwj_fY-FBQ4IWIj96_l7mf84H3V2EsqWgzpoHuTqTSTUvKJCaPaf5UN6CwyDA-rM7lCjy0eDnDnQcA/s550/Append%20selections.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;243&quot; data-original-width=&quot;550&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoeWmKA-GhrxToaACJI3m4P1yehyc8LWX_dkOnpE2tEAPUr0WELbx28BjMi-4Rfv-1Z5B0pnCuRlPUIRUSRnAAn4St6hblViO_tJYV1Ydokaq-Xwj_fY-FBQ4IWIj96_l7mf84H3V2EsqWgzpoHuTqTSTUvKJCaPaf5UN6CwyDA-rM7lCjy0eDnDnQcA/s16000/Append%20selections.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;What we need to do next is to change the Append formula manually to look at a version of the query where the original Colunm6 is still included, and then Append that version of the Table to the version that has Column1 renamed as Column6. Essentially, next we need to combine both lists of names from the original columns 1 and 6. Instead of writing the formula from scratch, we used the Power Query menu options to do the hard work, and we will tweak the formula for this scenario. I totally geek out on tricks like these, and how much they expand your capabilities in Power Query, with minimal investment.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you select on the Applied Step for Appended Query, it will show the formula for that step in the formula bar. Reading the formula from left to right it says &quot;Combine Tables that are located at the Applied Step Renamed Columns with the Table at the same Applied Step Renamed Columns&quot;.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1d9uI2LTrDI-pSWkW29y1pX6cU9gzfKwKReWeCw_YfIMS3WjWtDuZ-hQkiOGSAlvzg7ydV5SaJ8pSWtpcN2TybvOpaU0vPPRztyOt9SapQ5Ou4cYrlIsW5kKiDaTjytBp6GIk5UozFnRnUkvvHSMVIee4w6QRHZqHR_JwoJxY-69hiV7IamANGfmxrg/s562/Append%20formula%20uneditted.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;57&quot; data-original-width=&quot;562&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1d9uI2LTrDI-pSWkW29y1pX6cU9gzfKwKReWeCw_YfIMS3WjWtDuZ-hQkiOGSAlvzg7ydV5SaJ8pSWtpcN2TybvOpaU0vPPRztyOt9SapQ5Ou4cYrlIsW5kKiDaTjytBp6GIk5UozFnRnUkvvHSMVIee4w6QRHZqHR_JwoJxY-69hiV7IamANGfmxrg/s16000/Append%20formula%20uneditted.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;To modify the formula, we will replace one of the Renamed Columns references with a reference to an Applied Step that contained Column6. We got rid of Column6 when we performed the step Removed Other Columns; so a Step where Column6 was still in the Table was the Changed Type1 Step.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6av4iAYuBKxtANsyAIqTfzmJ4ry6pWgoADOinW3hU1zv5Yrae9n6y3Z3mo_gRkTKb2FsVZ-gnBoYaXE2_-lEPyP8h4T2Ro2GMzwzS7iygQ4m2PIS1DAY1KLrJ3xIkwp3WytvxtZm_MtWdaaWxaXV8a7ScNEyc8I54w3jx27gNdRMrte0kooaln5Y9jQ/s608/Applied%20Steps%20showing%20Column6.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;331&quot; data-original-width=&quot;608&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6av4iAYuBKxtANsyAIqTfzmJ4ry6pWgoADOinW3hU1zv5Yrae9n6y3Z3mo_gRkTKb2FsVZ-gnBoYaXE2_-lEPyP8h4T2Ro2GMzwzS7iygQ4m2PIS1DAY1KLrJ3xIkwp3WytvxtZm_MtWdaaWxaXV8a7ScNEyc8I54w3jx27gNdRMrte0kooaln5Y9jQ/s16000/Applied%20Steps%20showing%20Column6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;So while in the Appended Query Applied Step, we are going to replace one of the references to Renamed Columns with the Changed Type1 step. Remember that Power Query is case sensitive, so be sure to spell exactly as shown. The # proceeding the reference indicates that you are referring to a Step in the query, and if a Step is more than one word, quotation marks should surround it. Here&#39;s how the final modified formula will look.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXj2TYqQAFs3WGm7XVsrLfnGOcq6AwRjKb_oOspL4OgU2d9uhmeBNCsZ98J3EWFWxbdUvTkOB5p1eKlj3z4caovw5tpiu0ulNfqzKLWyX7YOTXVYNLc5Ca68-oMB5rzAZKxqIIafTKClEgPZkAnwv5driPw_ivclTtkml6wVh4hLnkiyxvGThOra2Wgw/s517/Final%20Append%20formula.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;41&quot; data-original-width=&quot;517&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXj2TYqQAFs3WGm7XVsrLfnGOcq6AwRjKb_oOspL4OgU2d9uhmeBNCsZ98J3EWFWxbdUvTkOB5p1eKlj3z4caovw5tpiu0ulNfqzKLWyX7YOTXVYNLc5Ca68-oMB5rzAZKxqIIafTKClEgPZkAnwv5driPw_ivclTtkml6wVh4hLnkiyxvGThOra2Wgw/s16000/Final%20Append%20formula.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Alternatively, you also could have swapped the order and placed Changed Type1 first and Renamed Columns last.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now that you&#39;ve manually updated the formula, you&#39;ll notice two changes: 1) it&#39;s pulled back in all the rows that you removed previously, and 2) Column6 now includes names from both columns of the original table.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Repeat the step to Remove Other Columns, keeping only Column6, and you have a single clean list of names, converted from a PDF to a Power BI query.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2022/09/convert-pdf-using-powerbi.html&quot;&gt;Convert PDF using PowerBI&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: Coming soon&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/5955635333485840431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2023/04/transforming-pdf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5955635333485840431'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5955635333485840431'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2023/04/transforming-pdf.html' title='Transforming a PDF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwm5gy7Tw9cwZZlQuXu8cD_9U36e6kir29AELt1DKflDOk48N83uH4cTihcUuS0U88tw-43nQSFINQd9rh5pXG3BKwG7SZ1NRmw6E3dXnvxKvcAViX9XhycPex6zxugbno5DcX-yD59KDMBW2EVRWPfH4_Ig9zN1oH1UbsZAMuWTncZcdfg054oLOBZA/s72-w640-h238-c/Compare%20PDF%20to%201st%20matrix.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Virginia, USA</georss:featurename><georss:point>37.4315734 -78.6568942</georss:point><georss:box>9.1213395638211523 -113.8131442 65.741807236178843 -43.500644199999996</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-1540815465965038411</id><published>2022-11-07T12:25:00.007-06:00</published><updated>2023-06-13T09:42:29.854-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerBI"/><title type='text'>Direct query</title><content type='html'>&lt;div&gt;Today, November 7, 2022, I saw that Microsoft has finally launched Direct Query, which allows users to connect to an existing PowerBI dataset. I&#39;ve been waiting for this feature since I started using PowerBI and PowerQuery in 2018.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It does appear to be in Beta, and so I did have to enable the ability to Preview this feature, but I got prompted as soon as I selected the option to connect to PowerBI Datasets, and the directions were easy to follow.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Since it&#39;s brand new, I&#39;m obviously still playing around with it, but was glad to see that my favorite datasets were easy to connect to once the option was selected. I&#39;m really hoping this functionality improves some refresh times. Instead of reconnecting to a source and performing the necessary transformations, I&#39;m optimistic that I&#39;ll be able connect directly to the transformed dataset going forward.&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;Instructions&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;Ready to get started? Here&#39;s a link to Microsoft&#39;s instructions for Connecting PowerBI reports to existing PowerBI datasets.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-report-lifecycle-datasets&quot;&gt;https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-report-lifecycle-datasets&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here&#39;s the link to Microsoft&#39;s instructions for Connecting Excel to existing PowerBI datasets.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;goog_241338952&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-connect-power-bi-datasets-excel&quot;&gt;https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-connect-power-bi-datasets-excel&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;Have you tried Direct Query? Please leave comments on your experience below.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2021/10/combine-all-files-in-folder.html&quot;&gt;Combine All Files in a Folder&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2022/09/convert-pdf-using-powerbi.html&quot;&gt;Convert PDF using PowerBI&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/1540815465965038411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2022/11/direct-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/1540815465965038411'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/1540815465965038411'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2022/11/direct-query.html' title='Direct query'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-920646068239758036</id><published>2022-09-22T19:49:00.026-05:00</published><updated>2023-06-13T09:45:10.079-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerBI"/><title type='text'>Convert PDF using PowerBI</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-size: medium;&quot;&gt;Just joining the blog? Explore &lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot;&gt;prior lessons here&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A PDF file isn&#39;t built for complex data analysis, but can hold lots of data we want to analyze. In this exercise, I will show how easy it is to convert a PDF to a data visualization using PowerBI.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Scenario&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;You can follow along with this exercise by downloading the source PDF file saved here:&amp;nbsp;&lt;a href=&quot;https://1drv.ms/b/s!AsH5A836kUFPhv4X_7145N3B2xma3Q?e=7cSgAE&quot; target=&quot;_blank&quot;&gt;PDF&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s assume you work in compliance for a large accounting firm in New Mexico. Each quarter, one of your tasks is to go through the&amp;nbsp;NM Accountancy Board Newsletter and pull a list of all people with Disciplinary Reports.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Flipping through the newsletter, you will find the data for this exercise on Page 11.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuZ2uCGXlWTKg1OPh3vuGw_j8-aJVZbz5UNkd-GSfbGNZVMpI9f3ytnSN_COJSA4N3KYrax6_fgJEGyQ3TFXr7K1IHYyYoDiVKXzxbL-CgI76Uy9LxQ8LQXCkImIvpajaZaygyEa8MZfq82-iLzUKxayl1SqEwBR6oYaFZ5MJSmZ08EhTI3M2i2hpGg/s1008/PDF%20Pg%2011.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;657&quot; data-original-width=&quot;1008&quot; height=&quot;418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuZ2uCGXlWTKg1OPh3vuGw_j8-aJVZbz5UNkd-GSfbGNZVMpI9f3ytnSN_COJSA4N3KYrax6_fgJEGyQ3TFXr7K1IHYyYoDiVKXzxbL-CgI76Uy9LxQ8LQXCkImIvpajaZaygyEa8MZfq82-iLzUKxayl1SqEwBR6oYaFZ5MJSmZ08EhTI3M2i2hpGg/w640-h418/PDF%20Pg%2011.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Choose Data&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;i&gt;Haven&#39;t downloaded the PowerBI Desktop app yet?&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/03/powerbi-and-powerpivot.html&quot; target=&quot;_blank&quot;&gt;Instructions available in this prior post&lt;/a&gt;&amp;nbsp;under the header, Install.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Open the application PowerBI Desktop, and let&#39;s get started.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Start in the Home menu, then select Get data, scrolling down to the bottom to select More... The More option expands to show more than 100 connections that are already built-in to PowerBI.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-ryRcW-IYvI16V_c0U35BpQfB7hAZEljKNbpic5Jlr56q1t_c3CYzT8aE-_6DfSl1604HwKSTZK9Ea5vMR3sUiwqSS5zPQ6F84NQcVHX-l9h3rgj8YftEeoPyH-rRxKvPgzc19tirGf_tgU-0AoSPuWhNkgSzXPpSDPacw6cscBjP9ShTPmubVTrBIw/s686/PowerBI%20Get%20Data%20menu.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;686&quot; data-original-width=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-ryRcW-IYvI16V_c0U35BpQfB7hAZEljKNbpic5Jlr56q1t_c3CYzT8aE-_6DfSl1604HwKSTZK9Ea5vMR3sUiwqSS5zPQ6F84NQcVHX-l9h3rgj8YftEeoPyH-rRxKvPgzc19tirGf_tgU-0AoSPuWhNkgSzXPpSDPacw6cscBjP9ShTPmubVTrBIw/s16000/PowerBI%20Get%20Data%20menu.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;At the time of this writing, the PDF option was listed at the top of the All section. If you don&#39;t see it quickly, use the Search functionality in the same menu.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKfKfa0RWX_uobrJk3Ubvboh1Ma1ta0UEOE3xaj4kC0Ik_6AKuQVOkG6UgQ6ZAHTwqDw1iOFpFjwlV35ScmVAne1ZBffTUDXBZTdDAuguYG_PH4Tz0WgwAGjCxi9OwR0vFxzMekE974TnX-8Cv1OwhyuJLoW0BTuDKfZbUosvd61bHJN-ivuyXZ1cV7w/s731/Select%20PDF.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;345&quot; data-original-width=&quot;731&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKfKfa0RWX_uobrJk3Ubvboh1Ma1ta0UEOE3xaj4kC0Ik_6AKuQVOkG6UgQ6ZAHTwqDw1iOFpFjwlV35ScmVAne1ZBffTUDXBZTdDAuguYG_PH4Tz0WgwAGjCxi9OwR0vFxzMekE974TnX-8Cv1OwhyuJLoW0BTuDKfZbUosvd61bHJN-ivuyXZ1cV7w/s16000/Select%20PDF.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Once PDF is selected, then choose Connect.&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpYIrPULBDxhZbf5juIYlLzRBVZbLoC2kruIkBqyJEpeFbAAXRW3IdTzZI61TJoro_5QQDj4NxEqO4Kzf3fssGX918YAP5BEKinjqps9g44zp1JrfRfKRzFRaIGaXLYiuBGNSsS2DdOTdewtbwP1n10IFk3RHpfB_ZGx8vhnswisZnqtB3CfoGozhZVA/s230/Connect.png&quot; style=&quot;clear: left; display: inline; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;88&quot; data-original-width=&quot;230&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpYIrPULBDxhZbf5juIYlLzRBVZbLoC2kruIkBqyJEpeFbAAXRW3IdTzZI61TJoro_5QQDj4NxEqO4Kzf3fssGX918YAP5BEKinjqps9g44zp1JrfRfKRzFRaIGaXLYiuBGNSsS2DdOTdewtbwP1n10IFk3RHpfB_ZGx8vhnswisZnqtB3CfoGozhZVA/s1600/Connect.png&quot; width=&quot;230&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the Open menu pop-up, browse to the location where the downloaded PDF has been saved.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Next, the Navigator menu will open, showing a few different options for selecting the data from page 11. Below I&#39;ve selected the three Page 11 options to highlight them, but we only need to select one to load. To decide which option to select, click on each Page 11 to view the preview.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMH3Q4dLP6PN10kS4qyS5nDG22XkY_SWAgjehJS6a1FDAAykd1-pm9nyyvi5tAj6k9rBBoQpmGwQGklvtW7pnWGgborICSRjekUCQVYODd8soXXU3r5cceyglmZ4xPVeyTROvfr_KLdB3Tsak7h4lFTpuB5keV3yjGpz9XllgHtUdjs8oUw1LfzBHqUQ/s1055/Navigator.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;858&quot; data-original-width=&quot;1055&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMH3Q4dLP6PN10kS4qyS5nDG22XkY_SWAgjehJS6a1FDAAykd1-pm9nyyvi5tAj6k9rBBoQpmGwQGklvtW7pnWGgborICSRjekUCQVYODd8soXXU3r5cceyglmZ4xPVeyTROvfr_KLdB3Tsak7h4lFTpuB5keV3yjGpz9XllgHtUdjs8oUw1LfzBHqUQ/s16000/Navigator.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;
The option Table025 (Page 11) shows the data that we are after, without the extra text from the top of page 11. So select the option Table025 (Page 11), then Load.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOE6fPik-zOJ2_Ip3qkN9ATSJnbJhwNySlihsX4YXfKCgpRTbt1o2VQJwjZO9_-2PFuDOL3pDGu8JyO7Ejz014oVglzOgQ2PMfT8eaa_t_1GEnmNzEfqn62mPvN24u1c2vW-ozlIuoDcRSGv8rwN_SkFLft9_x1i7xF_PisT12LaRMk5qx1jQipOlMZA/s1265/Table25%20Page%2011.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;601&quot; data-original-width=&quot;1265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOE6fPik-zOJ2_Ip3qkN9ATSJnbJhwNySlihsX4YXfKCgpRTbt1o2VQJwjZO9_-2PFuDOL3pDGu8JyO7Ejz014oVglzOgQ2PMfT8eaa_t_1GEnmNzEfqn62mPvN24u1c2vW-ozlIuoDcRSGv8rwN_SkFLft9_x1i7xF_PisT12LaRMk5qx1jQipOlMZA/s16000/Table25%20Page%2011.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio885FvI92tVgAKLo_2Ch_MMj57HnvXML4h00ExXvD9UQHpXjTSa_X5s7TI2IOB2r0yfcJXKpnz28KpN0bvpMrh6taGVjLvNUxJ79lBQ1mIz93Ue2orxse4t7HyYwYTTZnO1GEn7jok96GKxO3AWI2N8rWmA9N8v93RHUa1gTLoIP5kLSaL5JL891QvQ/s353/Transform%20Data.png&quot; style=&quot;clear: left; display: inline; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;81&quot; data-original-width=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio885FvI92tVgAKLo_2Ch_MMj57HnvXML4h00ExXvD9UQHpXjTSa_X5s7TI2IOB2r0yfcJXKpnz28KpN0bvpMrh6taGVjLvNUxJ79lBQ1mIz93Ue2orxse4t7HyYwYTTZnO1GEn7jok96GKxO3AWI2N8rWmA9N8v93RHUa1gTLoIP5kLSaL5JL891QvQ/s16000/Transform%20Data.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Create Visualization&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3UTItZ6o8DmD2L8vauN-ytacmfcbYJUNlRlpZKYIgdIrSKnOTKLcj8gMVX4I0jVVAY-5OUaGuXWCz1wqApqujrSGOKS_t70__rrVaV2Jgk3FwkzQiv8OBRk7-HhBb5o-jEFxiW3-CpJOH2b9emZmkDJDMMfUkMc-JbPVn7C28kDQRBxxT93Yf5h5pwA/s321/Matrix%20visualization.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;321&quot; data-original-width=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3UTItZ6o8DmD2L8vauN-ytacmfcbYJUNlRlpZKYIgdIrSKnOTKLcj8gMVX4I0jVVAY-5OUaGuXWCz1wqApqujrSGOKS_t70__rrVaV2Jgk3FwkzQiv8OBRk7-HhBb5o-jEFxiW3-CpJOH2b9emZmkDJDMMfUkMc-JbPVn7C28kDQRBxxT93Yf5h5pwA/s16000/Matrix%20visualization.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Now that the data has been loaded, it&#39;s time to transform it in to a Visualization.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;In Power BI, the Matrix Visualization is a standard menu option, and it resembles a Pivot Table. It&#39;s an easy first Visualization type for accountants learning PowerBI, since it aligns with the pivots many of us are so familiar with.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ2nu9i4aB6pJW4JKtO8DkeMvdpPbrJshMBVYIlL1n9dPq3DAiNsMOP_qwyKdVSAn8IOWMvDDQqAkovoarCisLBDS-upVxTLP4wKTZk_sI3a2te4QmySM8uNi33h0dV1rOuuonUWM7mQUaGxrk6DR6LRq7U-p5IP_Spyb-PScJrkzyh5fuRgXYh2SZHw/s462/Add%20fields%20to%20matrix2.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;462&quot; data-original-width=&quot;457&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ2nu9i4aB6pJW4JKtO8DkeMvdpPbrJshMBVYIlL1n9dPq3DAiNsMOP_qwyKdVSAn8IOWMvDDQqAkovoarCisLBDS-upVxTLP4wKTZk_sI3a2te4QmySM8uNi33h0dV1rOuuonUWM7mQUaGxrk6DR6LRq7U-p5IP_Spyb-PScJrkzyh5fuRgXYh2SZHw/s16000/Add%20fields%20to%20matrix2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Similar to using Excel&#39;s Pivot Table Fields List, in Power BI there are a list of Fields to choose from based on the Data that was loaded above. In this example, since we didn&#39;t clean the data before using it, the Column names are generic: Column 5 and Column 6. You can then drag and drop fields in to the Visualizations area, immediately below the area where you select the Matrix option.&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After adding the field Column 6 to the Rows area, the Matrix looks like the following, which lists some of the names from one of the columns of the Table we loaded.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFCqLK7Ff2Wc3_r_nCQaL90YZWEPlx-eka4zE18iOlIh8kE_xUnP9zedB_coRmREgFkbcGipTpD65gcU2UfR-clFkHa1gMfdkEYdst6mmyHI31OpEgU9IzEeN2MAivCaFg2m8WikV-RfoRx8A6zqnCAigtKN9rDlKMU4RGBhV1EdvMxeH6b-R2ZPy9mg/s777/Matrix%20final.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;555&quot; data-original-width=&quot;777&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFCqLK7Ff2Wc3_r_nCQaL90YZWEPlx-eka4zE18iOlIh8kE_xUnP9zedB_coRmREgFkbcGipTpD65gcU2UfR-clFkHa1gMfdkEYdst6mmyHI31OpEgU9IzEeN2MAivCaFg2m8WikV-RfoRx8A6zqnCAigtKN9rDlKMU4RGBhV1EdvMxeH6b-R2ZPy9mg/s16000/Matrix%20final.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;While I hope that most of my readers have moved completely away from PDFs, on those occasions where PDFs can&#39;t be avoided, I hope this exercise helps transform a manual process to something more automated.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the next PDF lesson, we&#39;ll continue working with this PDF, but explore how to get both columns with names in to the Matrix, using transformation tools in the PowerQuery Editor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this lesson, you learned:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;How to load data to PowerBI;&lt;/li&gt;&lt;li&gt;How to convert a PDF to a Visualization in PowerBI; and&lt;/li&gt;&lt;li&gt;What a Matrix Visualization is and how to build it.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/u/s!AsH5A836kUFPh4R8Ajd7X6_DZlIT5A?e=RqSMBY&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2021/10/combine-all-files-in-folder.html&quot;&gt;Combine All Files in a Folder&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2023/04/transforming-pdf.html&quot;&gt;Transforming a PDF&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/920646068239758036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2022/09/convert-pdf-using-powerbi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/920646068239758036'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/920646068239758036'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2022/09/convert-pdf-using-powerbi.html' title='Convert PDF using PowerBI'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuZ2uCGXlWTKg1OPh3vuGw_j8-aJVZbz5UNkd-GSfbGNZVMpI9f3ytnSN_COJSA4N3KYrax6_fgJEGyQ3TFXr7K1IHYyYoDiVKXzxbL-CgI76Uy9LxQ8LQXCkImIvpajaZaygyEa8MZfq82-iLzUKxayl1SqEwBR6oYaFZ5MJSmZ08EhTI3M2i2hpGg/s72-w640-h418-c/PDF%20Pg%2011.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-5792208008809762866</id><published>2021-10-25T09:00:00.094-05:00</published><updated>2023-06-13T09:40:23.217-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="Troubleshooting"/><title type='text'>Combine all files in a Folder</title><content type='html'>&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: #222222; font-size: medium;&quot;&gt;&lt;b&gt;Just joining the blog? Explore &lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot;&gt;prior lessons here&lt;/a&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Imagine a folder with 100 journal entry files, and in less than in a minute you can combine them all together in to one report. Power Query makes it very easy to take all the files&amp;nbsp;in a folder and combine the files together to create a single query.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhrUNKwJ058Sgnt0HhbN5GnKUjmZa2aqI-8SNxD9lQ5gyh9Mokzo3TaTL5l7he2vtqyhSDBpGruxKt1QGqTJL3lvx0VxCEwnQo71h0JbtG-55lF-Za3m_-PKCcczA71yR3nrOkQJ1yW9C8nyBKBdUJn8evy3pyyhc9LvsIdK-hjtShJakOdv3V_4kKAbg=s356&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;46&quot; data-original-width=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhrUNKwJ058Sgnt0HhbN5GnKUjmZa2aqI-8SNxD9lQ5gyh9Mokzo3TaTL5l7he2vtqyhSDBpGruxKt1QGqTJL3lvx0VxCEwnQo71h0JbtG-55lF-Za3m_-PKCcczA71yR3nrOkQJ1yW9C8nyBKBdUJn8evy3pyyhc9LvsIdK-hjtShJakOdv3V_4kKAbg=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;The biggest challenge is how to modify the query when your report changes. Let&#39;s walk through all steps, so this will also serve as a reference guide for when an inevitable change occurs in the future.&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;File types&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;For this illustration, we are going to use Trial Balances saved as Excel files all in a single folder. Reports which you frequently export from an ERP system and then manipulate for analysis are excellent files to use when trying this out initially.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;While you can combine any files, it works best when:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The layout of the files are similar such as consistent column headers and number of columns.&lt;/li&gt;&lt;li&gt;The files are all of the same file type (i.e, .xlsx, .csv, .txt); and&lt;/li&gt;&lt;li&gt;The file layout rarely changes.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgRf1AsSaiHuHRHjdZ892wVJnmOhzwC7oyHwKFD9bOgEp6bdF5ll5Y9TynYh3LE2vasPIOfjAMrNEbLoMydbj3bM05RZUt8EpMTNiMQz56zFWWHwgwAyoC6YCUQqaQMh0z-L9ny3uvtQhMkdVMl-E3nzBOULCstGeUC2LFk6AJXtmLdu9KWW1YiN_gD9w=s356&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;46&quot; data-original-width=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgRf1AsSaiHuHRHjdZ892wVJnmOhzwC7oyHwKFD9bOgEp6bdF5ll5Y9TynYh3LE2vasPIOfjAMrNEbLoMydbj3bM05RZUt8EpMTNiMQz56zFWWHwgwAyoC6YCUQqaQMh0z-L9ny3uvtQhMkdVMl-E3nzBOULCstGeUC2LFk6AJXtmLdu9KWW1YiN_gD9w=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;If you want to follow along,&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&amp;nbsp;download&amp;nbsp;&lt;/b&gt;&lt;/span&gt;these Trial Balances and save in a folder on your network.&lt;/div&gt;&lt;div&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;144&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%21109130&amp;amp;authkey=%21AOOg_CbeIp06lHM&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;Item=&#39;Sheet1&#39;!A5%3AC10&amp;amp;wdHideGridlines=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;250&quot;&gt;&lt;/iframe&gt;
 &lt;iframe frameborder=&quot;0&quot; height=&quot;144&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%21109129&amp;amp;authkey=%21AOZk59TCB-ERF1Q&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;Item=&#39;Sheet1&#39;!A5%3AC10&amp;amp;wdHideGridlines=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;250&quot;&gt;&lt;/iframe&gt;

&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;↑&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;💾&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;↑&amp;nbsp; &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;↑&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;💾&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;↑&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;&gt;&lt;/script&gt;
&lt;!--Square--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-7813996770981538&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;5097432677&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Get Data&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgU_eDHra63RrVKdPhcECCMkt6eQiCr10XBYEqoeCmT8NVjHBsSHQTfBTH4BIrxJE-Zgz-ruUcdzItTLB_uBCMzdYwAebi0psUpvcO-DQ6Or79Dqv6PKCz_tx0a9fhFr30_Pmx7BeYfNeUbMryixsoij6k4JrFFkIO8y2fokFsjMEbzRU8ldoZE2dTEPA=s356&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;46&quot; data-original-width=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgU_eDHra63RrVKdPhcECCMkt6eQiCr10XBYEqoeCmT8NVjHBsSHQTfBTH4BIrxJE-Zgz-ruUcdzItTLB_uBCMzdYwAebi0psUpvcO-DQ6Or79Dqv6PKCz_tx0a9fhFr30_Pmx7BeYfNeUbMryixsoij6k4JrFFkIO8y2fokFsjMEbzRU8ldoZE2dTEPA=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Let&#39;s build a query using the folder where the above downloaded files are saved. First step is to load the data. On the Excel ribbon, go to Data, &lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Get Data&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;, &lt;i&gt;From File, From Folder&lt;/i&gt;&lt;span&gt;. Browse to the folder where the files you downloaded above are saved.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/h3&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiX4yRMkyvee6-ki18tC-Bdz7fjGQt0hmf8HMY6qpf25I15l99bPjp0C0TmUGzLzfqzkNwPo3pSQwy1FjIukb_SV2250__KGK4vUjyHe4UnInv2BLnqdTYIOOm1eIRbMxTGDjwymvz2QFqiOsJJlyocrQeoSNvrQWVCDi4_X6gxExMlPRf5PN7YpbdZtw=s645&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;626&quot; data-original-width=&quot;645&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiX4yRMkyvee6-ki18tC-Bdz7fjGQt0hmf8HMY6qpf25I15l99bPjp0C0TmUGzLzfqzkNwPo3pSQwy1FjIukb_SV2250__KGK4vUjyHe4UnInv2BLnqdTYIOOm1eIRbMxTGDjwymvz2QFqiOsJJlyocrQeoSNvrQWVCDi4_X6gxExMlPRf5PN7YpbdZtw=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgWaRvpNxw6SHzqizznHcqipjwh67DdoiV1AmuSA-8slryIodfdLMu6xyPUwSleLJ1AdyfU1D9OKC32JWZXeQyCpWXBdXesd33GazcAyzhsy_b3p4QcWg3tsRjUkzFFy3B8605zKigLI8z_ulglExBhvhpC7NBKk4mGrLYdmA2RuUQNSxDgYDfgEtc6lw=s356&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;46&quot; data-original-width=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgWaRvpNxw6SHzqizznHcqipjwh67DdoiV1AmuSA-8slryIodfdLMu6xyPUwSleLJ1AdyfU1D9OKC32JWZXeQyCpWXBdXesd33GazcAyzhsy_b3p4QcWg3tsRjUkzFFy3B8605zKigLI8z_ulglExBhvhpC7NBKk4mGrLYdmA2RuUQNSxDgYDfgEtc6lw=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span&gt;Once selected, the navigator screen will display a list of all the files in the folder. Select Combine, then &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Combine&lt;/span&gt;&lt;/b&gt; &amp;amp; Transform Data.&lt;/span&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;488&quot; data-original-width=&quot;952&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjC8TdKAAdXkgMcfYz2jW7sC0-8_F2s8T5cUc5kOfynoxQv4P2iI04REQ6OvuJg3WhVAlvRz76z7gcG7r20C7SAhtK4MFEOPUJh9KslXhbv6rFfHk-FnX8WL4hpNzD_ilcvcAu3fgCje5JadP1Ayool-8qoB5bThaVYO0CQv3ceUG8827uhmbfGbC3KUQ=s16000&quot; /&gt;&lt;/div&gt;&lt;div&gt;Next, Power Query wants to know which file in the folder should be used as the template when combining the files. By default, the Sample File will be the First File in the folder. You can also select the option to exclude any files which have errors.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg8GRG_faXAOpQ9-gOQnHOxBmVjFV9lVlzvHzYgZs8l1HAT7wia7ksdyI10565PgJPuWvcC8AVSu4JwYG2VA9_o3raAFn9e94ia0KrWk5U5W5ChVBaWJeW9YrwHA3myJLFDxJRclFcI8MAKWmDdEk3jUpHojBWSZy3iABtTdT-EHPW9qVEaakQVEez3tQ=s755&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;496&quot; data-original-width=&quot;755&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg8GRG_faXAOpQ9-gOQnHOxBmVjFV9lVlzvHzYgZs8l1HAT7wia7ksdyI10565PgJPuWvcC8AVSu4JwYG2VA9_o3raAFn9e94ia0KrWk5U5W5ChVBaWJeW9YrwHA3myJLFDxJRclFcI8MAKWmDdEk3jUpHojBWSZy3iABtTdT-EHPW9qVEaakQVEez3tQ=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;After selecting OK, Power Query has now taken all the files in the folder and combined them together.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi5KJlcx9SU6vCVsUJNbp4FYql2TWTaWOU4fbhALotwm_xaB7uJT2pO3biNXPDapbvzFJrNuIK7GcE-i9tmztLIsyf-n8b_-v4oCsfoA3pwzzzDW1bi5_6rXlFGHp5MNP29IrwRJO-BifJ8Gs2-6JvsWOmjvHLg7mJsAuhWLuZ-OB7qlNe5MERWDLNYZA=s1021&quot; style=&quot;clear: left; float: left;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;269&quot; data-original-width=&quot;1021&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi5KJlcx9SU6vCVsUJNbp4FYql2TWTaWOU4fbhALotwm_xaB7uJT2pO3biNXPDapbvzFJrNuIK7GcE-i9tmztLIsyf-n8b_-v4oCsfoA3pwzzzDW1bi5_6rXlFGHp5MNP29IrwRJO-BifJ8Gs2-6JvsWOmjvHLg7mJsAuhWLuZ-OB7qlNe5MERWDLNYZA=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Helper Queries&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;When a folder is the source for a query, Power Query creates several Helper Queries.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;i&gt;Parameter1:&amp;nbsp;&lt;/i&gt;tells Power Query which file needs to be used as the example.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;i&gt;Sample File:&lt;/i&gt;&amp;nbsp;grabs the file to be used as the model, or example.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;i&gt;Transform File:&lt;/i&gt;&amp;nbsp;provides instructions on how to convert the Sample to rows &amp;amp; columns.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;i&gt;Transform Sample File:&amp;nbsp;&lt;/i&gt;converts the Sample File in to a query with rows &amp;amp; columns.&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Now let&#39;s look at each of these queries to understand more about how they each perform and where challenges may be hidden.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhUzKgCCpxdTGhULzuYlYjaPJ92LI4NdPQFfnRBVxROZScRO7VtYNyMNcbcmgn4bnjZR89yoMQtUCxEtTCgE-jR9Ykrw9ZzzwwRDNoNn2fxY6KlNABuLq5pxgjy7YAErPQr6zogtuXdrF5A8C-_B2zT5kvom-T_yyLx3ZXh5QK0x9XtGhOwrv6jV3408w=s368&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;292&quot; data-original-width=&quot;368&quot; height=&quot;254&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhUzKgCCpxdTGhULzuYlYjaPJ92LI4NdPQFfnRBVxROZScRO7VtYNyMNcbcmgn4bnjZR89yoMQtUCxEtTCgE-jR9Ykrw9ZzzwwRDNoNn2fxY6KlNABuLq5pxgjy7YAErPQr6zogtuXdrF5A8C-_B2zT5kvom-T_yyLx3ZXh5QK0x9XtGhOwrv6jV3408w=s320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The &lt;i&gt;Parameter Query&lt;/i&gt;&amp;nbsp;tells Power Query which file needs to be used as the example. This will always be the &quot;Sample File&quot;; I can&#39;t think of a single issue I&#39;ve ever encountered with the Parameter Query. If something breaks, this is not likely your culprit.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj_ykOf9wK_wh9gGn1_j2k_o0-Dn-vWHNlpJRhPEPWj-ZsrfACk2b2DJFMlFiEDONKm6NpvAd2NPqPfRVMdNGubYWYRLZQPsn8HL4LvOhlNv5-lciYHX272HWVcNglFVEmxUaNUrLJ_c6r0rXSC84yTCkGqRmanYOG8mR7Ve91FdjaKbqOnVCps8zJSPQ=s677&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;157&quot; data-original-width=&quot;677&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj_ykOf9wK_wh9gGn1_j2k_o0-Dn-vWHNlpJRhPEPWj-ZsrfACk2b2DJFMlFiEDONKm6NpvAd2NPqPfRVMdNGubYWYRLZQPsn8HL4LvOhlNv5-lciYHX272HWVcNglFVEmxUaNUrLJ_c6r0rXSC84yTCkGqRmanYOG8mR7Ve91FdjaKbqOnVCps8zJSPQ=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;i&gt;Sample File Query &lt;/i&gt;grabs the file which was chosen to be the example.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhK8IPpoBSaWiUeUmrBCn9lz70okihzO2DKcAco_HNJXqQR9Rz-Pz0TURxLtbY1qoZZgtLO3KcftfaPv_MrKtnM7vIZClrVrt8Cig1pWla9MIWb4jqxC30L5e4rNoWY1cDBPU02KSVaZ4d8O1QMiU4YC_sEBKYh1XADyG7ugcs-ksVm31kN57aJVJ68-g=s676&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;171&quot; data-original-width=&quot;676&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhK8IPpoBSaWiUeUmrBCn9lz70okihzO2DKcAco_HNJXqQR9Rz-Pz0TURxLtbY1qoZZgtLO3KcftfaPv_MrKtnM7vIZClrVrt8Cig1pWla9MIWb4jqxC30L5e4rNoWY1cDBPU02KSVaZ4d8O1QMiU4YC_sEBKYh1XADyG7ugcs-ksVm31kN57aJVJ68-g=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The challenge which I&#39;ve encountered in the past is when the first file in the folder is no longer representative of what the data should look like, such as when the source updates the file layout (frequently I see this issue with third party files). In this case, filter the Source to select the correct file to use as the template for combining the data.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgQree21C7wudzf7NuRkSHyDrf5--aCJesBl-GdEL_E50vwvc5h7F2SwMLBnu23jVkGCUS01E6lPHPy3srxWMESjQJ4ptAnMmGSzuqUaBLuTbNK13FpHD6Ad7yVpPGm8vDeqpbG6jejPxXohqha2EyDwHj0Mcz43QUHKi-ox70UTogc5EL4WM2C2S7pVQ=s707&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;156&quot; data-original-width=&quot;707&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgQree21C7wudzf7NuRkSHyDrf5--aCJesBl-GdEL_E50vwvc5h7F2SwMLBnu23jVkGCUS01E6lPHPy3srxWMESjQJ4ptAnMmGSzuqUaBLuTbNK13FpHD6Ad7yVpPGm8vDeqpbG6jejPxXohqha2EyDwHj0Mcz43QUHKi-ox70UTogc5EL4WM2C2S7pVQ=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The &lt;i&gt;Transform File&lt;/i&gt;&amp;nbsp;query is actually a custom function (note the fx next to the query name). When the function is ran (called invoked in Power Query), all the steps are performed as defined in the query.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhuN1YOX6AtF_W1ckPBI4Bz4ukojzmvskJayeYqmWb5GHOnpSvLnOzhg_e-0paH4PXYQgfI90kZqHGCf8QyRUt_bDKCFDobqEIidj2rlA8X_Pz0qDHh9ImyN1ZMRN0XCHi8mLiwqENUBKWA6wEa8rfCsxAP0pY707F3Er6M3I3z80xB-gnylEkQDkSibQ=s746&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;223&quot; data-original-width=&quot;746&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhuN1YOX6AtF_W1ckPBI4Bz4ukojzmvskJayeYqmWb5GHOnpSvLnOzhg_e-0paH4PXYQgfI90kZqHGCf8QyRUt_bDKCFDobqEIidj2rlA8X_Pz0qDHh9ImyN1ZMRN0XCHi8mLiwqENUBKWA6wEa8rfCsxAP0pY707F3Er6M3I3z80xB-gnylEkQDkSibQ=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Applied Steps aren&#39;t visible in a function query; instead, to view what the query is doing you&#39;ll need to select the Advanced Editor from the Home menu to view the M language behind the query. In brief, the code below is saying, transform the Sample File (Parameter1) from the file format in to the Excel Workbook format of a query, which includes columns an rows, using the data from the worksheet Sheet1. When the function is run it creates the query Transform Sample File.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhBFJjisUoH24Ki_p9rFBhb0PZ_VAmVl1WyJYclr1_0_kwxK3LYn5YV9E5LJh0zQskTqfPdPvA0RnouekB_UmSwOX4tHzoj1yu6ec7VBvdZIkKD2rs0w-T2Aaq18lWxh9RqGL9UfxxIde7dxSbmOOH99djGfadiWZI1djbpunv3wSK6BSuFZJXXSV1Mww=s650&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;258&quot; data-original-width=&quot;650&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhBFJjisUoH24Ki_p9rFBhb0PZ_VAmVl1WyJYclr1_0_kwxK3LYn5YV9E5LJh0zQskTqfPdPvA0RnouekB_UmSwOX4tHzoj1yu6ec7VBvdZIkKD2rs0w-T2Aaq18lWxh9RqGL9UfxxIde7dxSbmOOH99djGfadiWZI1djbpunv3wSK6BSuFZJXXSV1Mww=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;i&gt;Transform File&lt;/i&gt; query is where you are most likely to encounter an issue. Note above that when the function runs it is looking for a worksheet named &quot;Sheet1&quot;. If the Sample file has a different sheet name, the query will fail. To correct, simply open the Advanced Editor and replace &quot;Sheet1&quot; with the appropriate worksheet name from the Sample File.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A similar type of issue can occur when the files in the folder are .csv. Below is what the M language looks like when the files are csv. Notice the &quot;Columns=5&quot; portion of the code; this means that only the first 5 columns of the csv file will be pulled in to Power Query when the function is invoked. If your file format changes and now has 6 columns, you can simply open the Advanced Editor and change &quot;Columns=5&quot; to &quot;Columns=6&quot;. &lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;This is the most frequent issue I&#39;ve had with my queries from folders.&lt;/span&gt; &lt;/b&gt;Bookmarking this tip will save you time in the future.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjDagKZ9P9Bs4wKW4SvndGzCKlFuRAzpAZT0OmyDMmHms7kSaoVfYk3Wh5eFtdIgXDIdACQh1uH7RE16alrGNKpJabwJisczDPUvN-CphbbZpkw1FyHLZ9l18yY-Ts8nN9iUEWN3_KER7CLbbzv1xDRQt4EcaSGw9szEJf46ffq0SSIAXunX1pMcF8ZnQ=s1123&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;168&quot; data-original-width=&quot;1123&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjDagKZ9P9Bs4wKW4SvndGzCKlFuRAzpAZT0OmyDMmHms7kSaoVfYk3Wh5eFtdIgXDIdACQh1uH7RE16alrGNKpJabwJisczDPUvN-CphbbZpkw1FyHLZ9l18yY-Ts8nN9iUEWN3_KER7CLbbzv1xDRQt4EcaSGw9szEJf46ffq0SSIAXunX1pMcF8ZnQ=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;hr /&gt;&lt;span style=&quot;color: red;&quot;&gt;💥&lt;b&gt;&lt;span&gt;BEST PRACTICE TIP&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;Quickly fix From File from Folder queries by making quick alterations to the queries in the Advanced Editor view. In the Transform File function query, modify the M language for Excel Files by updating the worksheet name, or for csv files update the number of columns.&lt;b&gt;&lt;span&gt;💥&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr /&gt;&lt;/div&gt;&lt;div&gt;The final Helper Query is the &lt;i&gt;Transform Sample File &lt;/i&gt;query. This query is generated when the function query, Transform File, is invoked. It brings together all the helper queries to convert the sample in to an Excel workbook type of query.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgV0ntCs_DM2iDEvYUZpa2DbninE92p43Am8oomrwzOocVPA_Kwf_vCbbRxbLaWvlXmFqfAMVR2lJdBprJSPP92_ZmdwzMii2JEygGH6Bg-DNDRox3OpvBu4yfzgQyG5mogAeYf4XdkNrElx8BkxZrb8B6feEfqyY8jTOEY-2YIUQslQ5ZB_clzFjh8CQ=s838&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;237&quot; data-original-width=&quot;838&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgV0ntCs_DM2iDEvYUZpa2DbninE92p43Am8oomrwzOocVPA_Kwf_vCbbRxbLaWvlXmFqfAMVR2lJdBprJSPP92_ZmdwzMii2JEygGH6Bg-DNDRox3OpvBu4yfzgQyG5mogAeYf4XdkNrElx8BkxZrb8B6feEfqyY8jTOEY-2YIUQslQ5ZB_clzFjh8CQ=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To sum up what we&#39;ve discussed:, the Helper Queries are:&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;i&gt;Parameter1: &lt;/i&gt;tells Power Query which file needs to be used as the example.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;i&gt;Sample File:&lt;/i&gt; grabs the file to be used as the model, or example.&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;i&gt;Transform File:&lt;/i&gt; provides instructions on how to convert the Sample to rows &amp;amp; columns.&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;i&gt;Transform Sample File:&amp;nbsp;&lt;/i&gt;converts the Sample File in to a query with rows &amp;amp; columns.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Converted File&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;After all the Helper Queries are created, then the final query is created. This query is the end result we were trying to achieve. In this query, you&#39;ll perform the normal Power Query transformations such as data clean-up and modifying columns and headers, achieving an end result similar to below, which combines trial balances from multiple dates.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjQtBmvOf9YQ85Fh5IKhhpLLzqiyVvDFkLtg8C9P8SSOCAde1JW3IY1VveEbs-AuzHd_umuNtPL8VIEiJ-UxRdHxvMtiiKmu1H2iMzN4Ir7p8SxFLvWLYC2ak-7zTEQS-yEJFKGBO375xcGweBAHPhI_qAn4h79oHosIwLjbOTl2RyVAPQfKhsWvfHzag=s872&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;212&quot; data-original-width=&quot;872&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjQtBmvOf9YQ85Fh5IKhhpLLzqiyVvDFkLtg8C9P8SSOCAde1JW3IY1VveEbs-AuzHd_umuNtPL8VIEiJ-UxRdHxvMtiiKmu1H2iMzN4Ir7p8SxFLvWLYC2ak-7zTEQS-yEJFKGBO375xcGweBAHPhI_qAn4h79oHosIwLjbOTl2RyVAPQfKhsWvfHzag=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First note that all the Applied Steps in the screenshot below were automatically created by Power Query. The first step is the source, which is the folder file. Then, Power Query filters for any hidden files. Third, it invokes the function query, Transform File, transforming all the files to Excel workbook query types adding a column called Transform File. It then formats the file like the Sample File by renaming the Header Name to Source.File and removing extra columns. Finally, it expands the transformed data and changes the types.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi6uIx8lAlDkZZJtrYiskog-AjNW6DOeikBLh31VBHNfRlBYU3-hmSexJmwfuQCicA7pdjhdoNXxdbNoHUzUBkoUbXHhpikvSYnSfBhTUrQh-XE-m5uU23EPUdaL-vNtLLrq9iatqQmTwuAnNKBQcpL58w8KdhAxE9cypM9qnnBk4rhQWISuqnw9zOmMA=s352&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;352&quot; data-original-width=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi6uIx8lAlDkZZJtrYiskog-AjNW6DOeikBLh31VBHNfRlBYU3-hmSexJmwfuQCicA7pdjhdoNXxdbNoHUzUBkoUbXHhpikvSYnSfBhTUrQh-XE-m5uU23EPUdaL-vNtLLrq9iatqQmTwuAnNKBQcpL58w8KdhAxE9cypM9qnnBk4rhQWISuqnw9zOmMA=s16000&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;Power Query&#39;s ability to Combine all files in a folder is revolutionary. It&#39;s allowed me to personally create queries and analyze data in ways I never imagined before learning about it. While extremely easy to implement, when it fails, the existence of 4 Helper Queries plus the final query, can make it hard to identify where things go wrong.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this lesson, you learned:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;How to Get Data using From File From Folder;&lt;/li&gt;&lt;li&gt;What each Helper Query does; and&lt;/li&gt;&lt;li&gt;How to troubleshoot common issues.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhtQ24vkLeq02Usy6YA?e=rf8GQL&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/08/query-dependencies.html&quot;&gt;Query Dependencies&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2022/11/direct-query.html&quot;&gt;Direct Query&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/5792208008809762866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2021/10/combine-all-files-in-folder.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5792208008809762866'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5792208008809762866'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2021/10/combine-all-files-in-folder.html' title='Combine all files in a Folder'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhrUNKwJ058Sgnt0HhbN5GnKUjmZa2aqI-8SNxD9lQ5gyh9Mokzo3TaTL5l7he2vtqyhSDBpGruxKt1QGqTJL3lvx0VxCEwnQo71h0JbtG-55lF-Za3m_-PKCcczA71yR3nrOkQJ1yW9C8nyBKBdUJn8evy3pyyhc9LvsIdK-hjtShJakOdv3V_4kKAbg=s72-c" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-4566606849260817629</id><published>2021-08-25T10:00:00.006-05:00</published><updated>2021-10-17T01:32:14.151-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><title type='text'>Query dependencies</title><content type='html'>&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-size: medium;&quot;&gt;Just joining the blog? Explore prior lessons &lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When you have multiple queries which depend on each other, it&#39;s important to understand those connections, especially if you weren&#39;t the person who originally wrote the set of queries.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Power Query&#39;s Query Dependencies creates a visual map to display how each query is connected to the others.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Query Dependencies&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;To view Query Dependencies, open the Power Query Editor, and on the View menu select &quot;Query Dependencies&quot; on the far right.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUkDaDrdah5ZXePgzPXFUFRfK8nFTBjctxBGuZsOc1kGQLmFrXU-bkTq-kgBU2TmkExlqvauVzi_Y1lQjcMHtG8-zDZ8tfrk8m3yrvWCoqkrpgmiQBaJzh_8UyDxK8E5xuWH7j4ecZHKu/s797/Query+Dependencies.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;170&quot; data-original-width=&quot;797&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUkDaDrdah5ZXePgzPXFUFRfK8nFTBjctxBGuZsOc1kGQLmFrXU-bkTq-kgBU2TmkExlqvauVzi_Y1lQjcMHtG8-zDZ8tfrk8m3yrvWCoqkrpgmiQBaJzh_8UyDxK8E5xuWH7j4ecZHKu/s16000/Query+Dependencies.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Below is an example of a set of queries. Notice first that the query &quot;Calendar&quot; is not connected to any other query. Then note how the Current Workbook serves as the central source for the remaining displayed queries. The query &quot;Path2&quot; is the foundation for the next queries. If you modified &quot;Path2&quot; it could impact all the queries downstream culminating in to the &quot;Newest Transactions&quot; query which is built from combining all the connected files upstream of it ending in the final query &quot;Working_Budget_Query&quot;.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVb3cm-NBFROQXGHw5t8WM0rmANHIl3IL6ywXTLyxsueuvJ18JkYKmHSIT1TBw8o0ctXlOUYSbI_Y1rXO0VoRo_IqB8QBv4tHktR6BBBl9GYm9F6WnN8wee4UWp_JpXMJSLAKuZ5MR99n_/s1433/Map+of+dependencies.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1433&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVb3cm-NBFROQXGHw5t8WM0rmANHIl3IL6ywXTLyxsueuvJ18JkYKmHSIT1TBw8o0ctXlOUYSbI_Y1rXO0VoRo_IqB8QBv4tHktR6BBBl9GYm9F6WnN8wee4UWp_JpXMJSLAKuZ5MR99n_/s16000/Map+of+dependencies.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;In this lesson, you learned how to:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;How to view Query Dependencies; and&lt;/li&gt;&lt;li&gt;How to interpret the query dependency map.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2021/05/a-table-is-not-table.html&quot;&gt;A table is not a Table&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/10/combine-all-files-in-folder.html&quot;&gt;Combine all files in a folder&lt;/a&gt;, Coming October 25&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/4566606849260817629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2021/08/query-dependencies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4566606849260817629'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4566606849260817629'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2021/08/query-dependencies.html' title='Query dependencies'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUkDaDrdah5ZXePgzPXFUFRfK8nFTBjctxBGuZsOc1kGQLmFrXU-bkTq-kgBU2TmkExlqvauVzi_Y1lQjcMHtG8-zDZ8tfrk8m3yrvWCoqkrpgmiQBaJzh_8UyDxK8E5xuWH7j4ecZHKu/s72-c/Query+Dependencies.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-8786203027419913629</id><published>2021-05-25T09:00:00.008-05:00</published><updated>2021-10-17T00:15:25.197-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><title type='text'>A table is not a Table</title><content type='html'>&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;&gt;&lt;/script&gt;
&lt;div&gt;In this post, we will dig deeper, to discover why an Excel Table is much more powerful than just formatting.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAGnqgdmMEp3aYO-wZLS8fuzyCcfx9-6yz0kY5fGzQwEZTLD_YMgOWyEd8PNi4vWH77_V1nECtvwCpTdaSyohXjWoL0yNji3F5VJ_uoVplh8X3Pgq5t6GFJcJcaUJhAQuOdJjkB7x8q_b/s372/Converted+to+Table.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;167&quot; data-original-width=&quot;372&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAGnqgdmMEp3aYO-wZLS8fuzyCcfx9-6yz0kY5fGzQwEZTLD_YMgOWyEd8PNi4vWH77_V1nECtvwCpTdaSyohXjWoL0yNji3F5VJ_uoVplh8X3Pgq5t6GFJcJcaUJhAQuOdJjkB7x8q_b/s16000/Converted+to+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;What is a table?&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s start with some basic definitions.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;In Excel, you can freely structure content within cells; cell A3 below is just data.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;When you highlight cells A3:C5, the data becomes part of a range.&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZZULsd8sEHl_i7pKHRRcLpC4i6sKCpKKS7UsiTisNiXwKj5G1514f0GnXSZ_Oy0JkkH-9BGFVmWOfm_m0kvziF-Zj1Eo9o2YcVGbUoc7zMGRCnb-p5BX-AjO0OLr7ZrzqnckCupCrQJrx/s267/Raw+data.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;146&quot; data-original-width=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZZULsd8sEHl_i7pKHRRcLpC4i6sKCpKKS7UsiTisNiXwKj5G1514f0GnXSZ_Oy0JkkH-9BGFVmWOfm_m0kvziF-Zj1Eo9o2YcVGbUoc7zMGRCnb-p5BX-AjO0OLr7ZrzqnckCupCrQJrx/s0/Raw+data.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;The range becomes a table when every column has a header (note the lower case &quot;t&quot;), such as A3:C5.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In a table structure, a user might understand that row 3 contains headers, but Excel doesn&#39;t know that. Excel also doesn&#39;t understand that cell B4 is a Qty of Succulents.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Converting a table to a Table&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;A table can easily be converted to an Excel Table by selecting the table range and then pressing Ctrl + T. It can also be created from the Home menu by selecting &quot;Format as Table&quot;, or from the Insert menu by selecting Table, then Table. The fact that Excel gave us 3 ways to create a Table signals its power.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlPeKXPleJoJTJqpEdkvm40x1LVuN9mvyYvjNwv24TS4JXSLwHKtzrKYAbQ9TIsIViHZoELOvx5hY2x2Uuv-N_Y2OchhdIVUD5SCrxYhqWSnzEzWbaJEptv0BdShrAjBsCwk4tZo7EUi7o/s516/Format+as+Table.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;326&quot; data-original-width=&quot;516&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlPeKXPleJoJTJqpEdkvm40x1LVuN9mvyYvjNwv24TS4JXSLwHKtzrKYAbQ9TIsIViHZoELOvx5hY2x2Uuv-N_Y2OchhdIVUD5SCrxYhqWSnzEzWbaJEptv0BdShrAjBsCwk4tZo7EUi7o/s16000/Format+as+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Once the Table is created, you&#39;ll notice cosmetically that the data has been formatted. My default layout changes the rows to blue and white, alternating between each row (i.e, banded rows).&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEA36zOIT4zsk-dJE2k7dwU7AuBBpm_k3YDczNNxx_csbUDYn3k19nU3c21xT4pvNiOmgXeUh_Rl-VjBdA4gg8TBSeDEpqeydHMFtXbNyQed8UCgUlJH2utWe5jWmUzeXw-Ws7yfLifei7/s283/Converted+to+Table.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;167&quot; data-original-width=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEA36zOIT4zsk-dJE2k7dwU7AuBBpm_k3YDczNNxx_csbUDYn3k19nU3c21xT4pvNiOmgXeUh_Rl-VjBdA4gg8TBSeDEpqeydHMFtXbNyQed8UCgUlJH2utWe5jWmUzeXw-Ws7yfLifei7/s0/Converted+to+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Most importantly, when you select anywhere in the Table, a new Table Design menu becomes available on the ribbon. This is an easy way to confirm that all your data has been picked up in the Table. By using End + arrow keys, you can quickly scroll around the edges of the Table and ensure all data which should be included has been.&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIVfeoAufI92ay77SRoByc4kCUcLxjir7TRv-ma_32V8gm2hNgEKbyKssbi5FhDduug9vCrhTGCB5c0eEB0fhrx1vP2VN668_fdVicRWCujnS3p-3jZMz-lwG1Q-An2PEYcYlE-j_RJSkj/s487/Table+Design+menu.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;218&quot; data-original-width=&quot;487&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIVfeoAufI92ay77SRoByc4kCUcLxjir7TRv-ma_32V8gm2hNgEKbyKssbi5FhDduug9vCrhTGCB5c0eEB0fhrx1vP2VN668_fdVicRWCujnS3p-3jZMz-lwG1Q-An2PEYcYlE-j_RJSkj/s16000/Table+Design+menu.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;What is a Table?&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;Now that you&#39;ve created a Table, let&#39;s explore some of the key features of a Table.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Structure&lt;/i&gt;&lt;/div&gt;&lt;div&gt;An Excel Table is structured. The first row is always the Header row. Everything beneath a header relates to that header; for example, beneath the Product header are types of products.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;No cell references&lt;/i&gt;&lt;/div&gt;&lt;div&gt;Since Excel understands a Table&#39;s structure, you can reference Header names directly&amp;nbsp;when writing formulas. For example, you could write a formula for Total Sales as&amp;nbsp; =[@Qty]*[@[Unit Price]].&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNrLDC6fmP7LBrmsYqfbMw14F9dtyYffjz8zPIhbGgT54CcNh8tXZXpT-8dKn1ErVPEFfDraAeuUraeFS1SHPw-pelwNJ6h9ThTKHYDiTnQ8BeyuvjWfoUIpXUa5i9jMjMe-rd0DcbfJm9/s756/Table+Formula.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;76&quot; data-original-width=&quot;756&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNrLDC6fmP7LBrmsYqfbMw14F9dtyYffjz8zPIhbGgT54CcNh8tXZXpT-8dKn1ErVPEFfDraAeuUraeFS1SHPw-pelwNJ6h9ThTKHYDiTnQ8BeyuvjWfoUIpXUa5i9jMjMe-rd0DcbfJm9/s16000/Table+Formula.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;text-align: left;&quot;&gt;In Table formulas, the&amp;nbsp;&lt;/span&gt;@ symbol indicates that the formula should be applied @ the current row; it precedes the column name. Column names are in brackets []; if there is a space in the column, two sets of brackets are used, such as in [@[Unit Price]].&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This is a significant deviation from the traditional formulas of =B4*C4, but results in much more intuitive formulas which explain what&#39;s happening (Qty * Price). When the data is located separate from the formula such as on another worksheet, the efficiency created by using Excel Tables is even more evident.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Formula auto-calculation&lt;/i&gt;&lt;/div&gt;&lt;div&gt;When a formula is entered in to a Table, the formula is automatically copied down to the remainder of the Table rows and gets Power-calculated. &lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;To me, this is personally the best benefit of using Tables.&lt;/b&gt;&amp;nbsp;&lt;/span&gt; I work with lots of large data sets containing lookups, SUMIFs, and nested IFs. Copying down a new formula can take a few minutes, or cause Excel to stop responding; but, when using the exact same data formatted as an Excel Table, I rarely ever have issues and formulas take a couple of seconds, no matter how complex.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;New rows&lt;/i&gt;&lt;/div&gt;&lt;div&gt;When adding a new row to a Table, any formulas automatically copy down. Give it a try by downloading the exercise file below, then copy the additional data and paste in cell A10.&lt;/div&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;275&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%21108045&amp;amp;authkey=%21AN_ba_E6eIcY3cg&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;550&quot;&gt;&lt;/iframe&gt;&lt;div&gt;&lt;b style=&quot;color: red; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;↑&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Headers&lt;/i&gt;&lt;/div&gt;&lt;div&gt;Since Excel knows the Headers, there&#39;s no need to Freeze Panes. When you scroll down in the Table, the Headers float to the top replacing the traditional A:Z column headers.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGH9vHL7b-ecmDgCTQTRKsL0WOqOtgeyNNhyitZjdc47jk5u_TakyAfkJWRZOBZ3WllL4cBUAEGwbWD8xMZZniiRPswd5-bKfi63wu3s1NZ4uf89ZWVtK8d81a1sY6A343vh2hn1Bd7REf/s408/Floating+headers.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;73&quot; data-original-width=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGH9vHL7b-ecmDgCTQTRKsL0WOqOtgeyNNhyitZjdc47jk5u_TakyAfkJWRZOBZ3WllL4cBUAEGwbWD8xMZZniiRPswd5-bKfi63wu3s1NZ4uf89ZWVtK8d81a1sY6A343vh2hn1Bd7REf/s16000/Floating+headers.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;i&gt;Ranges defined&lt;/i&gt;&lt;/div&gt;&lt;div&gt;Since Excel knows how a Table is structured, as long as your cursor is anywhere inside Table, a few things are easier than ever:&lt;/div&gt;&lt;div&gt;- Sorting: Just select Sort; no need to highlight a range.&lt;/div&gt;&lt;div&gt;- Pivot Tables: Range is automatically the entire range of the Table.&lt;/div&gt;&lt;div&gt;- Power Query: When loading from the current workbook, Power Query needs the data as a Table.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;In this lesson, you learned:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The difference between a table and an Excel Table;&lt;/li&gt;&lt;li&gt;How to create a Table; and&lt;/li&gt;&lt;li&gt;The functions of Table including a structure Excel can read, no cell references, formula auto-creation, auto add formulas for new rows, scrolling headers, and a defined named range.&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhswfjVQSR9PtG5eA2g?e=lBkIiy&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2021/04/error-checking.html&quot;&gt;Error Checking&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/08/query-dependencies.html&quot;&gt;Query Dependencies&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/8786203027419913629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2021/05/a-table-is-not-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/8786203027419913629'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/8786203027419913629'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2021/05/a-table-is-not-table.html' title='A table is not a Table'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAGnqgdmMEp3aYO-wZLS8fuzyCcfx9-6yz0kY5fGzQwEZTLD_YMgOWyEd8PNi4vWH77_V1nECtvwCpTdaSyohXjWoL0yNji3F5VJ_uoVplh8X3Pgq5t6GFJcJcaUJhAQuOdJjkB7x8q_b/s72-c/Converted+to+Table.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-3631329961290166247</id><published>2021-04-25T12:00:00.006-05:00</published><updated>2021-10-16T23:27:03.610-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="Troubleshooting"/><title type='text'>Error checking</title><content type='html'>&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;Just joining? Explore prior lessons&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you&#39;ve played around with Power Query a bit, you may have experienced query errors, where loading a query shows a message such as &quot;&lt;i&gt;4 errors&lt;/i&gt;&quot;. This post shows an easy way to proactively check for errors before loading.&lt;/div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Data&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;For this exercise, we will use a simple data set of Actual Sales which contains two columns: Date &amp;amp; Sales. Download the file &lt;span&gt;below&lt;/span&gt;, or follow along with a similar workbook of your own.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;265&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?cid=4F4191FACD03F9C1&amp;amp;resid=4F4191FACD03F9C1%21107739&amp;amp;authkey=ADpSQEU0FB0cLtE&amp;amp;em=2&quot; width=&quot;300&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;↑&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Problem&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;If you look at the dataset, the yellow highlight is a date error, since Excel isn&#39;t ready yet for year 20122.&amp;nbsp;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGWoQXBDXilowLT3hOJC232vtXB55RWJt4CEy22dWGU-Vf1wd22i1G3sjfrn9-2QmY0IyC5qVVErFChD-ZImiWb6REZliPYcsMNdyc8t1vnRw1FGHvrIuxYcFfeYSLPr3HqCEOinDPOFc3/s202/Data+subset.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;106&quot; data-original-width=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGWoQXBDXilowLT3hOJC232vtXB55RWJt4CEy22dWGU-Vf1wd22i1G3sjfrn9-2QmY0IyC5qVVErFChD-ZImiWb6REZliPYcsMNdyc8t1vnRw1FGHvrIuxYcFfeYSLPr3HqCEOinDPOFc3/s0/Data+subset.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;When the data is loaded in to a Pivot Table, the Pivot isn&#39;t going to treat it as a date as shown below.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsZdpHecBoNwQ95FnGHwLfkRcnPhA6GhTP9PpNAKN5DwU3Tzz1fuuJL3Bawxzu8bLH4WdpazVyezdEqkjuxNZCEiCwHb1sYw5Li4P6EAotOND5xzIygZPqhnlhyWJFpWHdNSI_fXNpa4Zh/s632/Example+Error+in+Columns.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7dXPz9PDUbVrhxos4cxLff5e6vQccwfh_R8qv1U7ZwnfVNIvmLD-V7_drVCcHCiMcGVVfmprtu4kWY-DyBP-PXcgNomPFRLopYctYrPu2ueWySpuX_9jFh2Bgi1A1fdzoSur-Ba8TtgY-/s233/Pivot+error.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7dXPz9PDUbVrhxos4cxLff5e6vQccwfh_R8qv1U7ZwnfVNIvmLD-V7_drVCcHCiMcGVVfmprtu4kWY-DyBP-PXcgNomPFRLopYctYrPu2ueWySpuX_9jFh2Bgi1A1fdzoSur-Ba8TtgY-/s0/Pivot+error.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Similarly when the same data is loaded in to Power Query, and the column is tagged as Data Type &quot;Date&quot;, then Power Query is going to treat it as an error. If you don&#39;t catch it at the onset, when the query is loaded, you&#39;ll note an error message similar to below.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7ZsUBceTJGFnOM2CxTUiHshzhVCDKBzi6SU8ZN0dDXD7l2YDDUaZiEiMCu9OOMW4gi-5rjvhszXWJ5jzMxeRtfV6lHynUHWs7Ec7T-KeLYyvEuhtFf0Qfnb2pYk5DXcN72aJdrkVDN7C/s302/Query+error.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;192&quot; data-original-width=&quot;302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7ZsUBceTJGFnOM2CxTUiHshzhVCDKBzi6SU8ZN0dDXD7l2YDDUaZiEiMCu9OOMW4gi-5rjvhszXWJ5jzMxeRtfV6lHynUHWs7Ec7T-KeLYyvEuhtFf0Qfnb2pYk5DXcN72aJdrkVDN7C/s0/Query+error.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr /&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Solution&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Identifying the errors proactively, before loading a query, is ideal. To do so, we need to modify the View. Inside the Power Query Editor, on the View tab, there are two options which will provide the error information we seek: &quot;Column quality&quot; and &quot;Column profile&quot;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsZdpHecBoNwQ95FnGHwLfkRcnPhA6GhTP9PpNAKN5DwU3Tzz1fuuJL3Bawxzu8bLH4WdpazVyezdEqkjuxNZCEiCwHb1sYw5Li4P6EAotOND5xzIygZPqhnlhyWJFpWHdNSI_fXNpa4Zh/s632/Example+Error+in+Columns.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ4PFp696vJuiRf2hzmdJBHWfCtcpTu845t5hjGc10AunRfzQdNKvi-0262Yiq-Ku2pPk7ZD68vij_27JFXQAg4PUv4ly08CdvlsmdLXLZm8BudyXbM3D4k6WM8dev61DNbqkJRHvBiLYn/s448/View+Settings.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;138&quot; data-original-width=&quot;448&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ4PFp696vJuiRf2hzmdJBHWfCtcpTu845t5hjGc10AunRfzQdNKvi-0262Yiq-Ku2pPk7ZD68vij_27JFXQAg4PUv4ly08CdvlsmdLXLZm8BudyXbM3D4k6WM8dev61DNbqkJRHvBiLYn/s16000/View+Settings.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Column Quality provides three quick facts at the top of each column: they are the percent of data which is Valid, an Error, and Empty. By focusing on the Error metric, it is easy to identify that this query has errors in columns &quot;Date of Sale&quot; and &quot;Start of Month&quot;.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;157&quot; data-original-width=&quot;632&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsZdpHecBoNwQ95FnGHwLfkRcnPhA6GhTP9PpNAKN5DwU3Tzz1fuuJL3Bawxzu8bLH4WdpazVyezdEqkjuxNZCEiCwHb1sYw5Li4P6EAotOND5xzIygZPqhnlhyWJFpWHdNSI_fXNpa4Zh/s16000/Example+Error+in+Columns.png&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;Then you can focus on those columns and identify where in the column the error is occurring. This leads to one of the following decisions which will need to be made:&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Accept the error, knowing the data won&#39;t present appropriately in a Pivot, the Data Model, or a Measure.&lt;/li&gt;&lt;li&gt;Remove the errors using Power Query by right clicking on the column header and selecting &quot;Remove Errors&quot;, but this impacts data quality and completeness.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJH0p6r5HrGaglk5dZnFKKdf6HTXpiKO3prjSbAs1B79xOeNq3t7UdJaIFVNDOH1Ngk-6FQnSKucUPYGFT8qTlZl82tULiQWDCQmm7f2EgO9yHmhkqtCtPq-07k1gSUWpJTxSScj-dzQAP/s412/Remove+Errors.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;230&quot; data-original-width=&quot;412&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJH0p6r5HrGaglk5dZnFKKdf6HTXpiKO3prjSbAs1B79xOeNq3t7UdJaIFVNDOH1Ngk-6FQnSKucUPYGFT8qTlZl82tULiQWDCQmm7f2EgO9yHmhkqtCtPq-07k1gSUWpJTxSScj-dzQAP/s16000/Remove+Errors.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Fix the error at the source. Now that you know where the error is, it will be easier to go back to the source and fix the problem. When you are dealing with very large data sets, finding the problem is half the battle.&lt;/li&gt;&lt;li&gt;Fix the error using Power Query. Using transformation tools, such as Replace Values, the error can be corrected before the Changed Type step.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Column Profile&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;In addition to the Column Quality option, another View which was enabled above was the Column Profile. Where Column Quality stays on for each column, Column Profile only displays information when an individual column header is selected.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When selecting the Date of Sale column, on the left side are statistics about the selected column including row count and number of errors. However, since there is an error in this column, Column Profile doesn&#39;t provide any additional information.&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlmGDFUNH2Uu9nJfW5CdJRlMUAj459kOuQ9Yv-iotYI1N-oeecHoxO3g20r5EIFktQuqm5D6JkN1DldtisEfYx8FU6Re112QAO-SqbaVhRuGBEKYxXqwqFG3AKdrZ8UOFZ84YeN8Za5TdK/s747/Column+Profile.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;213&quot; data-original-width=&quot;747&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlmGDFUNH2Uu9nJfW5CdJRlMUAj459kOuQ9Yv-iotYI1N-oeecHoxO3g20r5EIFktQuqm5D6JkN1DldtisEfYx8FU6Re112QAO-SqbaVhRuGBEKYxXqwqFG3AKdrZ8UOFZ84YeN8Za5TdK/s16000/Column+Profile.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Let&#39;s contrast this with the Column Profile of a column without errors, such as the Sales column.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYEFh4gca6A2GrrwkWN_mgRE6ESmaMGWEYnHs-AsbVBu513Qyp73QJsXCqc0ZcspdVhBUMZkbUtRfw-QtSrdxlTRoqLnf4RD3I9JLjo3rpOO1ZT5QvkZAWNjEZCzieqR1EEg1xFzHPHJAZ/s745/Column+Profile+No+Errors.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;391&quot; data-original-width=&quot;745&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYEFh4gca6A2GrrwkWN_mgRE6ESmaMGWEYnHs-AsbVBu513Qyp73QJsXCqc0ZcspdVhBUMZkbUtRfw-QtSrdxlTRoqLnf4RD3I9JLjo3rpOO1ZT5QvkZAWNjEZCzieqR1EEg1xFzHPHJAZ/s16000/Column+Profile+No+Errors.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;When a column has no errors, the Column Profile view is able to provide more information as shown above. The left side has more statistical data such as the number of empty rows, number of distinct or unique values, or the average of all values. On the right side, there&#39;s a distribution graph showing the frequency of each value.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;/div&gt;&lt;div&gt;One of these two views is sure to be helpful in your Power Query journey.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this lesson, you learned how to:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Find errors using Column Quality and Column Profile; and,&lt;/li&gt;&lt;li&gt;Address errors using four alternative approaches.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhsloE8GI98pe7Vgg1g?e=zRFDYa&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/03/relationship-problems.html&quot;&gt;Relationship Problems&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/05/a-table-is-not-table.html&quot;&gt;A table is not a Table&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/3631329961290166247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2021/04/error-checking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/3631329961290166247'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/3631329961290166247'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2021/04/error-checking.html' title='Error checking'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGWoQXBDXilowLT3hOJC232vtXB55RWJt4CEy22dWGU-Vf1wd22i1G3sjfrn9-2QmY0IyC5qVVErFChD-ZImiWb6REZliPYcsMNdyc8t1vnRw1FGHvrIuxYcFfeYSLPr3HqCEOinDPOFc3/s72-c/Data+subset.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-2922211856943118723</id><published>2021-03-29T08:00:00.025-05:00</published><updated>2021-10-16T21:17:47.763-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="Troubleshooting"/><title type='text'>Relationship problems</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Just joining the blog? Explore prior lessons on &lt;span style=&quot;color: #0b5394;&quot;&gt; Relationships&lt;/span&gt; &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/building-relationships.html&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Ah, relationships: they always seem to have at least some problems.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In Power Pivot, the most obvious alert to a relationship problem is when all the values in a Pivot Table are the same.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4KQBjBHfTASxKwnHsg2RqNAZix8NqxHkI5HyLDckYvmT0VvxXg1G-TI2HcOMC0mT_kiK9A7pK-EPpmt4BcH67ipCSzngMTl3TxAyIW6kMDSOTpxESQTCAoeM1W8nKGWqGApIGk_21iJd8/s442/All+Values+the+Same+in+Pivot.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;121&quot; data-original-width=&quot;442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4KQBjBHfTASxKwnHsg2RqNAZix8NqxHkI5HyLDckYvmT0VvxXg1G-TI2HcOMC0mT_kiK9A7pK-EPpmt4BcH67ipCSzngMTl3TxAyIW6kMDSOTpxESQTCAoeM1W8nKGWqGApIGk_21iJd8/s16000/All+Values+the+Same+in+Pivot.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Let&#39;s walk through a few examples illustrating how&amp;nbsp;things go wrong, so you can spot and solve issues when they occur in your own data sets.&lt;/div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;The Data&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;For this exercise, there are two data sets: a Costs Table and a Sign Table. Download the data file by selecting the icon above the arrow below.&lt;/div&gt;&lt;div&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;150&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%21107657&amp;amp;authkey=%21AC6JeyWbflAKcNI&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;402&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;↑&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s explore the data in the Tables. The Sign Table is a Lookup Table for the natural sign based on transaction type. There are the two typical accounting transaction types (debit and credit) plus an additional type, Other (for statistical transactions).&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM1swmIzquVgTzxu1K0db9WkWjo1lorqVjD8o0VhfWpI7brjqi7KwEBe1B7PboTQoXQsUTqiXZ7XoSuah3Ty8badZzAFXRKaNRcyFha_TB8EUwjGibuXv_P9GNEPWZni-RW3SlFHBT6vH0/s162/Signs+Table.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;121&quot; data-original-width=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM1swmIzquVgTzxu1K0db9WkWjo1lorqVjD8o0VhfWpI7brjqi7KwEBe1B7PboTQoXQsUTqiXZ7XoSuah3Ty8badZzAFXRKaNRcyFha_TB8EUwjGibuXv_P9GNEPWZni-RW3SlFHBT6vH0/s16000/Signs+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;The Costs Table contains 12 accounting transactions; most transactions have a typical Transaction Type of Credit or Debit, but 2 are listed as Total and 1 is listed as Zero.&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WXl1VxrTcGAa9X81DYZNozHjvhQ0VAY91mT20dfrfx5fqo_hpo3I57OBhdKl99aMEpBDUIzixbtzvY_32SCshebRw9md5jyAnq2D4n7YL2fzXrn-Ohu3y19viD_3U5KS50BrY6maRsfW/s357/Costs+Table.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;337&quot; data-original-width=&quot;357&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WXl1VxrTcGAa9X81DYZNozHjvhQ0VAY91mT20dfrfx5fqo_hpo3I57OBhdKl99aMEpBDUIzixbtzvY_32SCshebRw9md5jyAnq2D4n7YL2fzXrn-Ohu3y19viD_3U5KS50BrY6maRsfW/s16000/Costs+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In native Excel, if you did a VLOOKUP to find the sign for the last transaction with a Transaction Type of Zero, the result would be #N/A.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;How will a Power Pivot Table handle the same exercise?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;How should the Pivots be set-up to obtain the correct count of transactions by type?&lt;/div&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Lookup Table field as value&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;On the Pivots tab, 2 Pivot Tables have been built which essentially are trying to gather the same information: &lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;what is the count of the type of each transaction?&amp;nbsp;&lt;/b&gt;&lt;/span&gt; The first set is pulling in to the rows area Transactions Type from the Costs Table (Data Table). The second set is pulling in Type from the Sign Table (Lookup Table).&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisB90VmFvPgTIsnz61Sz2qU4ERZyxQKtmCDGg6LDMgPNg5pOlP9J4FLx_DWubE97-gEDJxiIiIj9AMY1reMMVvS8xYQC25clioRawMxrLkJWIqJlLuLDGHBnOwvAbpqUvY1UqMlaaDz99I/s402/Transaction+Type+from+costs+Table.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;265&quot; data-original-width=&quot;402&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisB90VmFvPgTIsnz61Sz2qU4ERZyxQKtmCDGg6LDMgPNg5pOlP9J4FLx_DWubE97-gEDJxiIiIj9AMY1reMMVvS8xYQC25clioRawMxrLkJWIqJlLuLDGHBnOwvAbpqUvY1UqMlaaDz99I/s16000/Transaction+Type+from+costs+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMXIuXHDFMixK4M3y01Za4rGLNX3j4GI1tV8-qtVPY6KeRg1N5lzQERGA5h1qsCCWW3sjg7Tjh_5pGJZUyYi6CKaJalcoYyrUDzcMzsEhLckhYs0lU7uDXV6_eKY_4DvO6UC9YTOeSI5di/s402/Type+from+Sign+Table.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;277&quot; data-original-width=&quot;402&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMXIuXHDFMixK4M3y01Za4rGLNX3j4GI1tV8-qtVPY6KeRg1N5lzQERGA5h1qsCCWW3sjg7Tjh_5pGJZUyYi6CKaJalcoYyrUDzcMzsEhLckhYs0lU7uDXV6_eKY_4DvO6UC9YTOeSI5di/s16000/Type+from+Sign+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s look first at the impact of pulling in to the values area of each Pivot Table the type from the Lookup Table (Type from the Costs Table).&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZIo3xFBFi29-4MtlOujIBqwtsIPnGDrKxNY4muVJFmxRwjp3BvoBRQiEU97hGeLx4_MEfQ0nc-Yu_TjjbW6KuAivZOxKPABdtSny_eQJTU6jyL2kOjXYPk5rzdjyvWd7IwqQN0l8SBwQi/s500/Type+from+Sign+Table.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;500&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZIo3xFBFi29-4MtlOujIBqwtsIPnGDrKxNY4muVJFmxRwjp3BvoBRQiEU97hGeLx4_MEfQ0nc-Yu_TjjbW6KuAivZOxKPABdtSny_eQJTU6jyL2kOjXYPk5rzdjyvWd7IwqQN0l8SBwQi/s16000/Type+from+Sign+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Immediately noticeable is the left Pivot showing the count of Type as 3 in each row. Since Zero occurs only once in the Costs data, how can there be a count of 3? If the Grand Total is 3, how can each row also be 3?&amp;nbsp;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Power Pivot gives us a hint to why the left Pivot is returning 3 for each Transaction Type. When the Relationships alert shows up, it usually means we need to look at our relationship or in this case, build one.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFz8vmIWldr5BnVXP0OVtYWoINhSDQkDb6Tk_vXgkTTRmXsd5YuN8RhWQSU3_cxK8vbUP8uGupJ8Nm-dkc3QcycHEO6lc0ithAk0UQSs5BCy1TPt8QR_3TgPgVyAz6R-zJLurgMUAYmZuS/s268/Pivot+table+field+list+relationship+error.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;252&quot; data-original-width=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFz8vmIWldr5BnVXP0OVtYWoINhSDQkDb6Tk_vXgkTTRmXsd5YuN8RhWQSU3_cxK8vbUP8uGupJ8Nm-dkc3QcycHEO6lc0ithAk0UQSs5BCy1TPt8QR_3TgPgVyAz6R-zJLurgMUAYmZuS/s0/Pivot+table+field+list+relationship+error.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Build the Relationship&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;The relationship error message isn&#39;t extremely helpful; selecting Auto-Detect shows &quot;No new relationships found&quot;. Selecting Create opens a box to Create Relationship, but requires understanding which type should be the Foreign and Primary keys. I prefer instead to use the Power Pivot menu.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Let&#39;s build the relationship by going to the Power Pivot menu on the ribbon, then select Manage. Inside Power Pivot, select the Diagram View. Remember that the Data Table is the Costs Table and the Lookup Table is the Sign Table. So we&#39;ll need to have the Costs Table lookup to the Sign Table. To do so, in the Costs Table, select Transaction Type and drag over to the Sign Table Type field. This connects the two fields establishing a Relationship.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU-n6pt1JqxuxrLwJdSlxqHwl3KGSrTEpzqFkQ4CA0mZm38Dlf8E8FW2DBY4JYvF_ivndbqFeJhuCUFM4zhRq1IdXEtKCHMNM4nuVXPFac_b27Zc5kMGlaBuVParWCWAlTn6foBYLxxAkl/s343/Relationship+connection.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;343&quot; data-original-width=&quot;295&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU-n6pt1JqxuxrLwJdSlxqHwl3KGSrTEpzqFkQ4CA0mZm38Dlf8E8FW2DBY4JYvF_ivndbqFeJhuCUFM4zhRq1IdXEtKCHMNM4nuVXPFac_b27Zc5kMGlaBuVParWCWAlTn6foBYLxxAkl/s16000/Relationship+connection.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Looking at the Pivot Tables now, you&#39;ll note nothing has changed. Further exploration is required.&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Data Table field as value&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;In the exercise above, type was pulled in to the Pivots from the Lookup Table, Sign. This returned a value of three which represents the number of types listed in the Lookup Table (Credit, Debit,&amp;nbsp;Other). Each type being represented once, the Pivot on the right provided the correct count of the lookup, but not the count of the transactions by type.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjklIUbM0l1QUMcOmr2JVlpSklnHZH80WaB1iAqQ6AqlLEoB3BUfow9bK4-T1MzG6s8xJVgXkGN4SKGtTzzC0l6VL4zCvuq0CtuUjamuTqbCXFgL3JPsO6Tr1uIB4VhRbjnFDIUadeBau3m/s500/Type+from+Sign+Table.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;500&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjklIUbM0l1QUMcOmr2JVlpSklnHZH80WaB1iAqQ6AqlLEoB3BUfow9bK4-T1MzG6s8xJVgXkGN4SKGtTzzC0l6VL4zCvuq0CtuUjamuTqbCXFgL3JPsO6Tr1uIB4VhRbjnFDIUadeBau3m/s16000/Type+from+Sign+Table.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Now let&#39;s pull in to each Pivot the Transaction Type from the Costs query.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXeYUjmmLL7zKKpHDeykOiLUvCymuGucGGF0hwMPuIf9e8d3z-gQEOHJjz9_shIfKHc6iQDlIUI5f0XIeC5oBVZpgBmflkwcgI92iEcbzB-hq6r89p1xGJoIDZeERdPxxz_PNhq2atghay/s722/Pivots+with+both+types+in+Values+area.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;722&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXeYUjmmLL7zKKpHDeykOiLUvCymuGucGGF0hwMPuIf9e8d3z-gQEOHJjz9_shIfKHc6iQDlIUI5f0XIeC5oBVZpgBmflkwcgI92iEcbzB-hq6r89p1xGJoIDZeERdPxxz_PNhq2atghay/s16000/Pivots+with+both+types+in+Values+area.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Both Tables show a Count of 12. The left Pivot shows the count for Zero and Total, whereas the right Pivot only shows Blank, since those labels aren&#39;t in the Sign Table. On the surface, it seems like the left Pivot is the correct approach.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s perform one more test.&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Final Test&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s add the Sign to both Pivots.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLl8SMFOgDnxCwYYchHAivltjxCg_mRSG02ez-vshQj5ctFxyBIYUbJWRvAUMeYYy4xThw5zAISs53EJ1lMLcpNscDWSlnXvzxfkRj28I1GHUlcKtbYfqp9KymRtRNbJSnk_r6JgSksi9Q/s1010/Pivots+with+Sign+added.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;388&quot; data-original-width=&quot;1010&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLl8SMFOgDnxCwYYchHAivltjxCg_mRSG02ez-vshQj5ctFxyBIYUbJWRvAUMeYYy4xThw5zAISs53EJ1lMLcpNscDWSlnXvzxfkRj28I1GHUlcKtbYfqp9KymRtRNbJSnk_r6JgSksi9Q/w640-h246/Pivots+with+Sign+added.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now this view highlights an important issue with the left Pivot. While it&#39;s not returning a result of 3 in each row of the Pivot, showing 1 as the result is also incorrect. If you were to write Measures off the Table like this, your results would be inaccurate.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Why did this return the wrong result? &lt;/b&gt;The cause is because the left Pivot is asking for data from the Lookup Table (Sign) and from the transaction table (Transaction Type). &lt;span style=&quot;color: #2b00fe;&quot;&gt;I&lt;b&gt;n Power Pivot, Lookup Tables can see in to Data Tables, but Data Tables can&#39;t see in to Lookup Tables.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;Regardless of the rows field, the relationship flows down from the Sign Table to the Costs Table.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;When I first started using Power Pivot, I frequently had&amp;nbsp;&lt;b&gt;results where all rows were the incorrectly the same frustrating number.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;💥BEST PRACTICE TIP&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Always use the columns from the Lookup Table, not the Data Table, as the fields in the Pivot.&lt;/b&gt;&amp;nbsp;If the columns from the Data Table are used, the Pivot can not correctly see the Lookup Tables or other Data Tables, and the Pivot Table will return inaccurate results.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;💥&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now that you know the Best Practice Tip, the right approach to building these Pivots was the Pivot on the right. &lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Since the values area includes fields from both the Lookup and Data Tables, the rows (and column) areas can only include fields from the Lookup Table.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Y3UgP9TzQmO-YliGg9HPm2xU58APdGcmkpsSaASfwQFBOHO36ZN301EadQX9cfLsxvf6sS9RP6WgVlz6SmbCgCNVlmoQ2acmqNKUQQtCtGK9geVay1zp_CyKewmrAPzmJhgP7qpC-pCA/s497/Right+Answer.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;218&quot; data-original-width=&quot;497&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Y3UgP9TzQmO-YliGg9HPm2xU58APdGcmkpsSaASfwQFBOHO36ZN301EadQX9cfLsxvf6sS9RP6WgVlz6SmbCgCNVlmoQ2acmqNKUQQtCtGK9geVay1zp_CyKewmrAPzmJhgP7qpC-pCA/s16000/Right+Answer.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;In this lesson, you learned:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Always use the columns from the Lookup Table, not the Data Table, as the fields in the Pivot;&lt;/li&gt;&lt;li&gt;Always build relationships where the data table lookups to the lookup table; and&lt;/li&gt;&lt;li&gt;Just because it looks right, doesn&#39;t mean it is. Robustly test for accuracy.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhsZVOHDErcFXEISeYw?e=LOIEAu&quot; target=&quot;_blank&quot;&gt;SOLUTION&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2020/08/measures-right-wrong.html&quot;&gt;Measures: Right&amp;amp; Wrong&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/04/error-checking.html&quot;&gt;Error checking&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/2922211856943118723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2021/03/relationship-problems.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/2922211856943118723'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/2922211856943118723'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2021/03/relationship-problems.html' title='Relationship problems'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4KQBjBHfTASxKwnHsg2RqNAZix8NqxHkI5HyLDckYvmT0VvxXg1G-TI2HcOMC0mT_kiK9A7pK-EPpmt4BcH67ipCSzngMTl3TxAyIW6kMDSOTpxESQTCAoeM1W8nKGWqGApIGk_21iJd8/s72-c/All+Values+the+Same+in+Pivot.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-2273451721133866406</id><published>2020-08-23T20:00:00.012-05:00</published><updated>2021-10-16T22:37:19.456-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Measures"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>Measures: Right &amp; Wrong</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;Explore prior lessons on Measures&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/measures.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Measures are very powerful custom functions used inside Pivot Tables.&amp;nbsp; However, when I started using them, I found myself getting easily twisted up between when to use SUM vs SUMX.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;I built a cheat sheet to help me remember.&amp;nbsp; Hope it helps you too.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;The Cheat Sheet&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;Table1 below has Qty &amp;amp; Price. To calculate Sales, you could add a column to multiple Qty * Price as shown.&amp;nbsp; However, calculating a value for each row uses a lot of memory, especially when you have lots of data.&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;107&quot; data-original-width=&quot;329&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlhTvjwFc8guZMUFcShDPKTPJqFzkpr4yLaP13txxTvPqhPlh0LKOpkscBA-VDxB1SzmhmfXIbxX8PnteJozIaR1POwGe275LI_8xf2hbId1YIM2LfJxMXmc-ILWAtHVvsyORER3nztzZ/s16000/Input+table.png&quot; /&gt;&lt;/div&gt;&lt;div&gt;Measures are a much more efficient way to calculate values for&amp;nbsp;large data sets. There are several ways to write Measures to calculate sales, but only one way which avoids adding the Sales column to&amp;nbsp;the Table above and results in the correct Grand Total of 20.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8bEKUlPxfQHO5mYmmsuuuy76jFUEnbFzRhxpKO3C6Ljw2tK2-zYYAQryOQXigfqWtsWstGohj5WNr3zr99S4p1hJHgz4MkFLcHIPB0iAzxsCVQGnu3qAST4hsTJIrm5rD4QptdQyk7-_F/s1057/Pivot+table+measures.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;205&quot; data-original-width=&quot;1057&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8bEKUlPxfQHO5mYmmsuuuy76jFUEnbFzRhxpKO3C6Ljw2tK2-zYYAQryOQXigfqWtsWstGohj5WNr3zr99S4p1hJHgz4MkFLcHIPB0iAzxsCVQGnu3qAST4hsTJIrm5rD4QptdQyk7-_F/s16000/Pivot+table+measures.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Note first, in all cases the sales for Item A have been calculated correctly, as well as Item B.&amp;nbsp; The difference is the Grand Total. Adding 11 to 9 is 20, so with this small dataset this is an easy approach to check if a Measure is returning the correct result.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-right: 1em;&quot;&gt;&lt;i&gt;Sum of Sales&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;margin-right: 1em;&quot;&gt;Sum of Sales was calculated the traditional way, by pulling the Sales column in to the Values section of the Pivot Table.&amp;nbsp; It achieves the correct result. However, it can&#39;t be inserted inside another function such as Item Sales as a % of Total Sales.&amp;nbsp; It also requires having a Sales column in the Table which isn&#39;t efficient.&lt;/div&gt;&lt;div style=&quot;margin-right: 1em;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;margin-right: 1em;&quot;&gt;&lt;i&gt;Sales SUM&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;margin-right: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimdpJ0dlZ393I-yZ8jsdCS45bWek1BJiDRHCa1B-zkosnGgjpwhblvY7t0pOrccABBXd4rnfTWxckMB7s6p0_1cd5e9munAjWe4T7VDMMKRAzuUBj-Xt6-2zwSNDp4x659nWJtqdhRqauT/s732/Sales+SUM+long.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;57&quot; data-original-width=&quot;732&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimdpJ0dlZ393I-yZ8jsdCS45bWek1BJiDRHCa1B-zkosnGgjpwhblvY7t0pOrccABBXd4rnfTWxckMB7s6p0_1cd5e9munAjWe4T7VDMMKRAzuUBj-Xt6-2zwSNDp4x659nWJtqdhRqauT/s16000/Sales+SUM+long.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-right: 1em;&quot;&gt;The next approach does not need a Sales column in the Table.&amp;nbsp; This is a Measure which multiplies Price times Qty.&amp;nbsp; This yields the correct result for the Sales of Items A and B, but the Grand total takes the combined price of Items A &amp;amp; B (11+3=14) times the combined Qty (1+3=4), which equals 14*4=56.&amp;nbsp; This is incorrect as the sum of the sales for A (11) &amp;amp; B (9) is 20.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sales Sum of Sum&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY_GecNe84L9bf5wHnQXIquJW8rO_IG_yiq_TSoaBscilFiEYqsFMHF7OsQ8jgA9flwHOLs6QYmeYCDQddlRefl6DzyhK7A-CTgrpH_RK36x0zNORrKs1ENQxt1ZTyeea0sCpMJ0iELQGC/s945/Sales+SUM+of+SUM.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;53&quot; data-original-width=&quot;945&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY_GecNe84L9bf5wHnQXIquJW8rO_IG_yiq_TSoaBscilFiEYqsFMHF7OsQ8jgA9flwHOLs6QYmeYCDQddlRefl6DzyhK7A-CTgrpH_RK36x0zNORrKs1ENQxt1ZTyeea0sCpMJ0iELQGC/s16000/Sales+SUM+of+SUM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;When writing a Measure for the first time, I like starting with something I know will work and then building out from there. The Sales Sum of Sum utilizes the Sales column that was added to Table1. Taking the Sum of the Sales column yields the correct Grand Total.&amp;nbsp; However, having an extra column isn&#39;t ideal.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sales SUMX&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6-ucue_pEJpH0PrEDaTW7GCmV5NftCu8MNfRYBXwfck6YmU__CI-hzb8HCMuw0b0m-CsVN268TcxKWfhX7STnxEXU6veV3P2lhMMC2pnvtFmQ4ENwqg7TCGo-2WFWk-4j8UBZ7dm6Y_D8/s722/Sales+SUMX.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;52&quot; data-original-width=&quot;722&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6-ucue_pEJpH0PrEDaTW7GCmV5NftCu8MNfRYBXwfck6YmU__CI-hzb8HCMuw0b0m-CsVN268TcxKWfhX7STnxEXU6veV3P2lhMMC2pnvtFmQ4ENwqg7TCGo-2WFWk-4j8UBZ7dm6Y_D8/s16000/Sales+SUMX.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SUMX is an iterator: it goes through each row and sums it. First the Sum of the Sales column was calculated, which was 20, then SUMX went through each row of the query and summed the sales.&amp;nbsp; Effectively, this doubled each Item&#39;s sales. Using the Sales column in Table1, SUMX summed the total sales in row A &amp;amp; B, essentially doubling total sales.&amp;nbsp; Wrong answer but an iterator has potential.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;SUMX Sales&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ_BxTlEDcrMT4FcQF07Sz8WAkRBh0Fs3TZWfLkREQJM42G94yLznyJEz8AvKQ_wb6bEax8dgI7RVrvH57ZBHSfcenR6gLqnXPBWmR1UnBOZdSedwWFlbW59zaavg0WhHoV22zvKFTx42O/s1038/SUMX+Sales.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;43&quot; data-original-width=&quot;1038&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ_BxTlEDcrMT4FcQF07Sz8WAkRBh0Fs3TZWfLkREQJM42G94yLznyJEz8AvKQ_wb6bEax8dgI7RVrvH57ZBHSfcenR6gLqnXPBWmR1UnBOZdSedwWFlbW59zaavg0WhHoV22zvKFTx42O/s16000/SUMX+Sales.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now that&#39;s the right answer! But, it&#39;s using the Sales column again.&amp;nbsp; However, it does tell us that SUMX could be used to get to the correct subtotal.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;SUMX PQ&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTKBvToqPVJTO8wEV4q9Ca3t5Ghd6huCwGxLqbUuIKb_iJTzQTVsnDmFsFsoc5f77BD8cZ5BNfhIYTBEoqRBQvy__HDTJ74RfBTVSACy0cq-IMUZpuUWB-A7rcUYf603KAlrtWWl4DI1QX/s947/SUMX+PQ.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;43&quot; data-original-width=&quot;947&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTKBvToqPVJTO8wEV4q9Ca3t5Ghd6huCwGxLqbUuIKb_iJTzQTVsnDmFsFsoc5f77BD8cZ5BNfhIYTBEoqRBQvy__HDTJ74RfBTVSACy0cq-IMUZpuUWB-A7rcUYf603KAlrtWWl4DI1QX/s16000/SUMX+PQ.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally, the sweet spot. SUMX PQ has the correct Grandtotal and does not require a Sales column added to the Table.&amp;nbsp; This is the correct way to write a SUMX Measure.&lt;/div&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Wrap-up&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;This cheat sheet shows all the wrong ways to write a Measure. When I tried to write DAX on the fly in the beginning, I&#39;ve made every one of these errors. Happy DAX-ing!&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this lesson, you learned how to:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Write SUMX Measures the wrong way, and&lt;/li&gt;&lt;li&gt;Write SUMX Measures the right way.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhrYc6LUHmrEj_QuL0w?e=dSzKlo&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2020/08/m-language.html&quot;&gt;M-language&lt;/a&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2021/03/relationship-problems.html&quot;&gt;Relationship problems&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/2273451721133866406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2020/08/measures-right-wrong.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/2273451721133866406'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/2273451721133866406'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2020/08/measures-right-wrong.html' title='Measures: Right &amp; Wrong'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlhTvjwFc8guZMUFcShDPKTPJqFzkpr4yLaP13txxTvPqhPlh0LKOpkscBA-VDxB1SzmhmfXIbxX8PnteJozIaR1POwGe275LI_8xf2hbId1YIM2LfJxMXmc-ILWAtHVvsyORER3nztzZ/s72-c/Input+table.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Dallas, TX, USA</georss:featurename><georss:point>32.7766642 -96.796987899999991</georss:point><georss:box>4.4664303638211535 -131.95323789999998 61.086898036178845 -61.640737899999991</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-7316994259853008568</id><published>2020-08-16T02:13:00.006-05:00</published><updated>2021-06-07T13:33:00.552-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><title type='text'>M-language</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;Just joining the blog? Explore prior lessons&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;When using Power Query, steps are written using the M-language. Learning a little bit about the M-language can really help expand your Power Query automation skills.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEjXGlsEVThi7ZovR37Am3G0gni1NepLCeouOD4lYr_jHL3n-xJnWibpa1W7de6iSXuLc3Rx1m1m_djOlyIlz8MIxVN1Q-Xx_Jjh4kfg0dgZwvPSO_IX1DPcwgMJbzUnSzN5KJm2D7t1Ix/s515/Flow+3+steps.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;43&quot; data-original-width=&quot;515&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEjXGlsEVThi7ZovR37Am3G0gni1NepLCeouOD4lYr_jHL3n-xJnWibpa1W7de6iSXuLc3Rx1m1m_djOlyIlz8MIxVN1Q-Xx_Jjh4kfg0dgZwvPSO_IX1DPcwgMJbzUnSzN5KJm2D7t1Ix/s16000/Flow+3+steps.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;The good news is that most M-language questions can be solved by knowing 3 things.&amp;nbsp;&lt;/div&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;1. M formulas can be found on&amp;nbsp;&lt;a href=&quot;https://docs.microsoft.com/en-us/powerquery-m/number-abs&quot;&gt;Microsoft&#39;s website&lt;/a&gt;.&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px;&quot;&gt;&lt;div&gt;2. Steps can be performed first using the tools on the ribbon, and then adding M-language to tweak the final result (see example below).&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;3. The M-language is case sensitive.&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;
   &lt;hr /&gt; 
  &lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Illustrative example&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;In this example, the user has a Variance and a Threshold and is trying to determine when a row is above the threshold.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;In the Power Query Editor, first create a Conditional Column.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs8Pc3cj3BYCDTzUqrhNwzpu-EoFp8duOcanddoPF11lAGx2q69t6xaRNtxYUbzeDztGKofY1LjnhVe2qp9VS0kOpCHxr215a5W1WcuHH0nY-0mvvmkGUaYFCf34QwVyabk5cUEL3imk5h/s656/Flow+4+steps.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;40&quot; data-original-width=&quot;656&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs8Pc3cj3BYCDTzUqrhNwzpu-EoFp8duOcanddoPF11lAGx2q69t6xaRNtxYUbzeDztGKofY1LjnhVe2qp9VS0kOpCHxr215a5W1WcuHH0nY-0mvvmkGUaYFCf34QwVyabk5cUEL3imk5h/s16000/Flow+4+steps.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-SjXQ5JAAjOI0FhdxrA287IQ6krXn_0LFsDj0GMincWHpb8w9Buf8XFuXZE_wufFFJ6gT91UyFFZ1lQfE6STYg5Uz4QYE6MeSYFbiBCpvI65XKS62Bgoz6-Uur23k3XaoEdeMwTbNwON4/s390/Add+Conditional+Column.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;154&quot; data-original-width=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-SjXQ5JAAjOI0FhdxrA287IQ6krXn_0LFsDj0GMincWHpb8w9Buf8XFuXZE_wufFFJ6gT91UyFFZ1lQfE6STYg5Uz4QYE6MeSYFbiBCpvI65XKS62Bgoz6-Uur23k3XaoEdeMwTbNwON4/s16000/Add+Conditional+Column.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNQ2_YMliQKnxNGoAEJgg1ZR-uvyFqjBeItjCzUWsAEgq5LIx7YcsNLGEdnL1ALrwElpEGS78JRqTJGTJYepqqMMJEq5_zsWekqvxOy17goj6CxJ4ZU1cg6EF8h-WNe3Fga_nhfcH7p9vr/s1138/Conditional+Column.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;466&quot; data-original-width=&quot;1138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNQ2_YMliQKnxNGoAEJgg1ZR-uvyFqjBeItjCzUWsAEgq5LIx7YcsNLGEdnL1ALrwElpEGS78JRqTJGTJYepqqMMJEq5_zsWekqvxOy17goj6CxJ4ZU1cg6EF8h-WNe3Fga_nhfcH7p9vr/s16000/Conditional+Column.png&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Create a step&amp;nbsp;&lt;/span&gt;&lt;/b&gt;using the Add Conditional Column prompt. Enter the parameters as shown below to create a column &quot;$ above threshold&quot; which will look at the Variance YOY column. If the value is less than or equal to the value in the Threshold $ column, then the column will have a value of &quot;No&quot; for that row; if not, then the value will be &quot;Yes&quot;.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;After the column is created, you can look at the M-language in the formula bar.&amp;nbsp; If the bar is hidden, on the ribbon, go to the View menu and check the box for Formula Bar as shown below.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-3s5IOm02OBgf5GtlhnGnPospOHrDojgKgkl8HN47W995tVVoDcX0qj8TfgENNk9C7Oa4VBLmcTamHJbOu5nPYLLiNMS4oNl3BuMKRdo5_T-W3y5wz98Y6nzWEDt1D51dm5hf5oVbzUQs/s461/Formula+bar.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;142&quot; data-original-width=&quot;461&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-3s5IOm02OBgf5GtlhnGnPospOHrDojgKgkl8HN47W995tVVoDcX0qj8TfgENNk9C7Oa4VBLmcTamHJbOu5nPYLLiNMS4oNl3BuMKRdo5_T-W3y5wz98Y6nzWEDt1D51dm5hf5oVbzUQs/s16000/Formula+bar.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;The formula for the conditional column is provided below. The formula can be read as &quot;in the table, add a column, after the Changed Type step. Name the column &quot;$ above threshold&quot;. For each row, if the value in the Variance YOY column is less than or equal to the value in the Threshold $, then the value in the new column should be No, else it should be Yes&quot;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjIf6vJ8EmfmVK1dHAdjPytFFSgGlFR5MOsIOqyg-5I6ykfB5O0g5dzNwNb2VCTunyLv6efhjQ_B7OZ-_-Ts-jp6q0xm7x-NEa6YO1oAuB1QnxOrRCkZlmStd63DleUgh8wMwFNx3nIN0w/s517/Formula+for+step.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;51&quot; data-original-width=&quot;517&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjIf6vJ8EmfmVK1dHAdjPytFFSgGlFR5MOsIOqyg-5I6ykfB5O0g5dzNwNb2VCTunyLv6efhjQ_B7OZ-_-Ts-jp6q0xm7x-NEa6YO1oAuB1QnxOrRCkZlmStd63DleUgh8wMwFNx3nIN0w/s16000/Formula+for+step.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;hr /&gt;
  &lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Adding to the M-language&lt;/span&gt;&lt;/h3&gt;What the end user really wants is a column which looks at the absolute value of the Variance YOY and then evaluates if it&#39;s above the dollar threshold.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Using the Add Conditional Column prompt, there is no way to add an absolute value evaluation to the formula.&amp;nbsp; However, it can be done in two steps:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Search on&amp;nbsp;&lt;a href=&quot;https://docs.microsoft.com/en-us/powerquery-m/number-abs&quot;&gt;Microsoft&#39;s website&lt;/a&gt;&amp;nbsp;for the M-language for absolute value;&lt;/li&gt;&lt;li&gt;Add the M-language for absolute value to the formula generated using the &quot;Added Conditional Column&quot; prompt.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;i&gt;Search for M-language&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidRUWriTbaLcfgw1wYHP4F9p8Qz6CAyubfemRw0nDT7iQVWY-XVzrTLYTWKEoV8N1mQlVuJT2vaTKFX-IeNan2LHs9Fgh0A4D1oySjfrySV5ak8gpyaER49BXzmYSmU1rq9Br8OCmqE5jT/s656/Flow+4+steps.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;40&quot; data-original-width=&quot;656&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidRUWriTbaLcfgw1wYHP4F9p8Qz6CAyubfemRw0nDT7iQVWY-XVzrTLYTWKEoV8N1mQlVuJT2vaTKFX-IeNan2LHs9Fgh0A4D1oySjfrySV5ak8gpyaER49BXzmYSmU1rq9Br8OCmqE5jT/s16000/Flow+4+steps.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On&amp;nbsp;&lt;a href=&quot;https://docs.microsoft.com/en-us/powerquery-m/number-abs&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Microsoft&#39;s website&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;, in the &quot;filter by title&quot; box starting to type &quot;Absolute&quot; yields a Power Query M function, Number.Abs.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRKmVSrM0BAbmeM9f_Zq66HApKjtzt9Xc2sOsIAlo9Ri5mu_bqOxEFy1r1SloHCgE7NlplWoLayTHa91VVje7mRfXlZoN8Xxcu6Xxw8jvZWRl0PYpxlCPpSX_B8PNc9-jBuywCk0_6q5_A/s467/Filter+box.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;143&quot; data-original-width=&quot;467&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRKmVSrM0BAbmeM9f_Zq66HApKjtzt9Xc2sOsIAlo9Ri5mu_bqOxEFy1r1SloHCgE7NlplWoLayTHa91VVje7mRfXlZoN8Xxcu6Xxw8jvZWRl0PYpxlCPpSX_B8PNc9-jBuywCk0_6q5_A/s16000/Filter+box.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuNBpEf19a3FQ26ikbdyij5A7eTtL7CqARglYlQzy1ouRy07sC2PYVw-9Lyd8F3wcxdcQuEdT4KI4riEzhfrvxW8y6VudYwtGPH2ND9F9pZb_U6gkYdZXebo-dRJRbMGEElJvOKsjW5FtU/s441/Search+for+Abs.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;441&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuNBpEf19a3FQ26ikbdyij5A7eTtL7CqARglYlQzy1ouRy07sC2PYVw-9Lyd8F3wcxdcQuEdT4KI4riEzhfrvxW8y6VudYwtGPH2ND9F9pZb_U6gkYdZXebo-dRJRbMGEElJvOKsjW5FtU/s16000/Search+for+Abs.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Reading through the description, it is clear Number.Abs is the function we are looking for to modify our existing M-language to calculate the absolute value of the Variance YOY column.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLMrhcCWJgBERww57mH9DuM4TAAoFXToYiTJkVR4rP5odKUST0hOF6fid-hv1-L8jCge-DQ1s8RfMnAuHnaK4ZYOEYnoUVI-Y8j7HV6OByt02HqByCxvrV2TZFNezGfzMKra6rc-UayygU/s267/Absolute+value.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;207&quot; data-original-width=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLMrhcCWJgBERww57mH9DuM4TAAoFXToYiTJkVR4rP5odKUST0hOF6fid-hv1-L8jCge-DQ1s8RfMnAuHnaK4ZYOEYnoUVI-Y8j7HV6OByt02HqByCxvrV2TZFNezGfzMKra6rc-UayygU/s16000/Absolute+value.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;i&gt;Adding M-language&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKPuG2H8h2LthOqW6dxCNc7L67MN3TpRGOH1ULcNva6RuUEyNfv7tHlrZu8AQr1e0va7mYYSlvkrE7-cxD3FH2_WY191OsoP1OUNVkgWUpiW8gXisnX6fPWz0tJTZCsnUQ3h6R1UzqP0L/s656/Flow+4+steps.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;40&quot; data-original-width=&quot;656&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKPuG2H8h2LthOqW6dxCNc7L67MN3TpRGOH1ULcNva6RuUEyNfv7tHlrZu8AQr1e0va7mYYSlvkrE7-cxD3FH2_WY191OsoP1OUNVkgWUpiW8gXisnX6fPWz0tJTZCsnUQ3h6R1UzqP0L/s16000/Flow+4+steps.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now returning to the Power Query Editor, and selecting the step &quot;Added Conditional Column&quot;, the formula bar will once again show the function. &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Modify the formula&lt;/span&gt;&lt;/b&gt; by typing in Number.Abs (&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;case sensitive&lt;/span&gt;&lt;/b&gt;) before the column reference for [Variance YOY]. Also surround [Variance YOY] in parens.&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNC0KE7Wlf5P0hGU9mcXvy6AOicF_p3K485Kv17iUb-mzxL6GTZZZPA1ML5jpNoPdx1dDllkfEgc1tkbHT0xtWpnorZdI49QVzH3qhIRVzuYJu209H8Zaf7Z6f6aqh5J4eK1Nsew8vjUZG/s540/Formula+with+Abs.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;80&quot; data-original-width=&quot;540&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNC0KE7Wlf5P0hGU9mcXvy6AOicF_p3K485Kv17iUb-mzxL6GTZZZPA1ML5jpNoPdx1dDllkfEgc1tkbHT0xtWpnorZdI49QVzH3qhIRVzuYJu209H8Zaf7Z6f6aqh5J4eK1Nsew8vjUZG/s0/Formula+with+Abs.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;i&gt;&lt;span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;M-language with modification&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
  &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjIf6vJ8EmfmVK1dHAdjPytFFSgGlFR5MOsIOqyg-5I6ykfB5O0g5dzNwNb2VCTunyLv6efhjQ_B7OZ-_-Ts-jp6q0xm7x-NEa6YO1oAuB1QnxOrRCkZlmStd63DleUgh8wMwFNx3nIN0w/s517/Formula+for+step.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;51&quot; data-original-width=&quot;517&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjIf6vJ8EmfmVK1dHAdjPytFFSgGlFR5MOsIOqyg-5I6ykfB5O0g5dzNwNb2VCTunyLv6efhjQ_B7OZ-_-Ts-jp6q0xm7x-NEa6YO1oAuB1QnxOrRCkZlmStd63DleUgh8wMwFNx3nIN0w/s0/Formula+for+step.png&quot; /&gt;&lt;/a&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;i&gt;&lt;span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;M-language before modification&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;hr /&gt;In this lesson, you learned how to:&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Modify an existing M-language formula;&lt;/li&gt;&lt;li&gt;Locate new M formulas to enhance capabilities; and,&lt;/li&gt;&lt;li&gt;Check the case, since the M-language formula is case sensitive.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhrYRx9Dq5btwgbMstA?e=Aia21M&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/09/calculated-columns-vs-measures.html&quot;&gt;Calculated columns vs Measures&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2020/08/measures-right-wrong.html&quot;&gt;Measures: Right &amp;amp; Wrong&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/7316994259853008568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2020/08/m-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/7316994259853008568'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/7316994259853008568'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2020/08/m-language.html' title='M-language'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEjXGlsEVThi7ZovR37Am3G0gni1NepLCeouOD4lYr_jHL3n-xJnWibpa1W7de6iSXuLc3Rx1m1m_djOlyIlz8MIxVN1Q-Xx_Jjh4kfg0dgZwvPSO_IX1DPcwgMJbzUnSzN5KJm2D7t1Ix/s72-c/Flow+3+steps.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-6557155956014548964</id><published>2020-05-31T19:08:00.019-05:00</published><updated>2021-06-06T23:36:21.055-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Measures"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><title type='text'>Calculated columns vs Measures</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;Just joining the blog? Explore prior lessons&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
When playing with the Power tools, there is often more than one way to tackle a task. Read further to explore the pros and cons of calculated columns and Measures.&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For this exercise, we&#39;ll use the dataset below to find Total Sales for each product using calculated columns and then a Measure.&amp;nbsp;&lt;/div&gt;&lt;div&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;225&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%21101579&amp;amp;authkey=%21AMZU3gXYU9d4WG4&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;402&quot;&gt;&lt;/iframe&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ⇧&lt;/span&gt;
&lt;h3&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Calculated Column&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnUFojarW6OUCgxjbBcyowq5LQZsi28qhWsR3fzTFJ5p2EMIuTJRDHfdRduWWz44iBlkvKUaRxtAsFSpQSat7K2WNyTab12GMsIvK9EKPF4AEaElNoIpYXjDBIg5fdRSMbm0ZwL8mW93V7/s442/Flow1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;42&quot; data-original-width=&quot;442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnUFojarW6OUCgxjbBcyowq5LQZsi28qhWsR3fzTFJ5p2EMIuTJRDHfdRduWWz44iBlkvKUaRxtAsFSpQSat7K2WNyTab12GMsIvK9EKPF4AEaElNoIpYXjDBIg5fdRSMbm0ZwL8mW93V7/s16000/Flow1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;A calculated column expands a dataset by adding an additional column&lt;/b&gt;&lt;/span&gt;. It&#39;s similar to native Excel where you would write a formula in a new column.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #ff8a11;&quot;&gt;New users will feel more comfortable using calculated columns instead of Measures&lt;/span&gt;&lt;/b&gt;. However, there are some downsides to this approach which we&#39;ll explore further down. For now though, let&#39;s practice our Power Query skills by adding a calculated column.&lt;br /&gt;
&lt;br /&gt;
Select the Download icon above the arrow&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;⇧&amp;nbsp;&lt;/span&gt;on the dataset above.&amp;nbsp; With your cursor in the Table, load to Power Query by going to the Data tab and &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;selecting From Table/Range&lt;/span&gt;&lt;/b&gt;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJdVBMelRddTKnx-dtwVanuFYCK0P5Mm76wzC8S5boojYLnbFrOjO99J0EZ8lcRyUoiw_KRbu9M6fKkBYhejgAccHz6fLPNfdBeqUhX-4MZ1_7pCwTyS6KAIyJ20HUPP8KLP-4D6TyphgH/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;157&quot; data-original-width=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJdVBMelRddTKnx-dtwVanuFYCK0P5Mm76wzC8S5boojYLnbFrOjO99J0EZ8lcRyUoiw_KRbu9M6fKkBYhejgAccHz6fLPNfdBeqUhX-4MZ1_7pCwTyS6KAIyJ20HUPP8KLP-4D6TyphgH/&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Inside the Power Query Editor, on the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt; Add Column&amp;nbsp;&lt;/b&gt;&lt;/span&gt;tab, select Custom Column.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8RQNBy-0saLtAqzGA3tEC4GuEek_8oqOtzfPzQhts3PAvSsGFSu1fp93uZFXv9GJ46q33TX1vrtRbg7cR9JlUf-QaMIYXD1GCi5Y3JWDngHdKIbH5UyTVDKsQQefusl9vOhMBh8REhBLl/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;163&quot; data-original-width=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8RQNBy-0saLtAqzGA3tEC4GuEek_8oqOtzfPzQhts3PAvSsGFSu1fp93uZFXv9GJ46q33TX1vrtRbg7cR9JlUf-QaMIYXD1GCi5Y3JWDngHdKIbH5UyTVDKsQQefusl9vOhMBh8REhBLl/d/Add+Custom+Column.png&quot; title=&quot;Screenshot adding custom column in PQ&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Create a &quot;Total sales&quot; column like the example below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkr4UVnmUx3aHwt59SjQjG92f4pQB5OhS09sip5-yaZDNs_AEsOAiGgEgiXoWdSgb4QssWcARvdYy48FCvH0Nhi7QsiU1c-q3lt7EQ8uhNxp2iFnZDOiowuh7Y9VKgFvs1GI65AWAwziX7/s1600/Total+sales+calculated+column.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;377&quot; data-original-width=&quot;663&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkr4UVnmUx3aHwt59SjQjG92f4pQB5OhS09sip5-yaZDNs_AEsOAiGgEgiXoWdSgb4QssWcARvdYy48FCvH0Nhi7QsiU1c-q3lt7EQ8uhNxp2iFnZDOiowuh7Y9VKgFvs1GI65AWAwziX7/s1600/Total+sales+calculated+column.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
After selecting OK, the new Calculated Column has been added to our query.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4jw3_ktQShv3vDM29VCy598r8yt4wP8PrlG_jo0jfObXdiKhfz5yf1_UHHONcImHOPAGYZADsar0SDaqwuVt_qLg9wnUNiyx8em_h-rE3Z8TdGRbq_LKoRTblKFlxXKVp1nIVwoXJuLBF/s1600/Calculated+Column+Addition.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;159&quot; data-original-width=&quot;483&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4jw3_ktQShv3vDM29VCy598r8yt4wP8PrlG_jo0jfObXdiKhfz5yf1_UHHONcImHOPAGYZADsar0SDaqwuVt_qLg9wnUNiyx8em_h-rE3Z8TdGRbq_LKoRTblKFlxXKVp1nIVwoXJuLBF/s1600/Calculated+Column+Addition.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
Change the type of &quot;Total sales&quot; to Decimal Number and then &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;Close &amp;amp; Load To&lt;/span&gt;&lt;/b&gt;, Table, New worksheet, Add this data to the Data Model, Load.&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Advantages of using Power Query instead of native Excel to build the Calculated Column &lt;/b&gt;&lt;/span&gt;include:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Removes the potential for a formula to get altered accidentally;&lt;/li&gt;
&lt;li&gt;Shrinks the file size, since Power Query uses xVelocity to compress data; and,&lt;/li&gt;&lt;li&gt;Allows processing of massive amounts of data since Power Query is limited only by the capacity of your machine, not Excel&#39;s ~1 million rows limit: 20 million rows, no problem.&lt;/li&gt;&lt;/ul&gt;
However, it could be even better. Let&#39;s try it in Power Pivot.&lt;br /&gt;
&lt;h3&gt;
&lt;hr /&gt;
  &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Build a Power Pivot Pivot Table&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;Before we write a Measure, let&#39;s add a Pivot Table to our workbook, so we can see the results.&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Choose to &quot;Use this workbook&#39;s Data Model&quot;.&amp;nbsp; This creates a Pivot Table using the data loaded in to Power Query.&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFVA_T9psI6S3-8_m8xDeoytI7-74KM00Cm0ip6mRo_9mL9t5BUq1uMiRpan5Yg6hetOnrNVVkQKwbjYPcXgCIoXmEjeXh3862xZlY-ciHFoRH2C0xXSVVGynVvRosuHRE8KCP0or84h1D/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;235&quot; data-original-width=&quot;542&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFVA_T9psI6S3-8_m8xDeoytI7-74KM00Cm0ip6mRo_9mL9t5BUq1uMiRpan5Yg6hetOnrNVVkQKwbjYPcXgCIoXmEjeXh3862xZlY-ciHFoRH2C0xXSVVGynVvRosuHRE8KCP0or84h1D/d/Pivot+table+created+from+model.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the PivotTable Fields, there may be 3 Sales_data sets to choose from when selecting fields for the Pivot.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe1ijoxQZ7PoLWzNKBKbb1tIp7B6X2146pKIajAH95AXL_L8QYlwxiDJlWz3MOh81OdMZj6GQE-zZG9eErR-KOxIZ88nPWFr1XmmdU5OgecmLwOEaC-9PTVngXSe5T5-lTOo72wrEOs1GV/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;282&quot; data-original-width=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe1ijoxQZ7PoLWzNKBKbb1tIp7B6X2146pKIajAH95AXL_L8QYlwxiDJlWz3MOh81OdMZj6GQE-zZG9eErR-KOxIZ88nPWFr1XmmdU5OgecmLwOEaC-9PTVngXSe5T5-lTOo72wrEOs1GV/d/Multiple+sales+datas+in+pivot.png&quot; title=&quot;Visual of multiple Sales_data options&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hovering over the name yields more information to distinguish between the data sources.&lt;/div&gt;&lt;div&gt;&lt;ul&gt;
&lt;li&gt;The first is the original Data Table which was loaded to Power Query.&lt;/li&gt;&lt;li&gt;The second is the query that was created in Power Query.&lt;/li&gt;&lt;li&gt;The third is the output of the query.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;On the PivotTable Field List, select from the query &quot;Sales_data 1&quot; and pull Product in to the Rows area and &quot;Total sales&quot; in to the Values area.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEwf8CWA36JlC_98Sde-ipiASqfW8qCNSdXnbEUFIQprqMlEx20ncQst8ndTr4QB1ZUfF6aoDKMkwiITiWBLs9M9hZxPDo9gNKnBt0yh2t0MNy-BzW6RmivsRk0iaSosG1XnJFoiGPRhe/s253/Pivot+with+calc+column+Total+Sales.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;203&quot; data-original-width=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEwf8CWA36JlC_98Sde-ipiASqfW8qCNSdXnbEUFIQprqMlEx20ncQst8ndTr4QB1ZUfF6aoDKMkwiITiWBLs9M9hZxPDo9gNKnBt0yh2t0MNy-BzW6RmivsRk0iaSosG1XnJFoiGPRhe/s0/Pivot+with+calc+column+Total+Sales.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Measure&lt;/span&gt;&lt;/h3&gt;Now, let&#39;s calculate Total Sales again, but this time using a Measure instead of a calculated column. The results will be the same, but Measures have additional advantages over native Excel and calculated columns.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The Measure will need to multiply Qty and Unit Price for each row of the data and then sum those products to get a grand total.&amp;nbsp; To achieve this result, we will use a SUMX formula, which is an iterator formula, which iterates through each row of the Table and then sums the total.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The SUMX format is&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;= SUMX(Source Query, function to perform on each row before summing)&lt;/div&gt;&lt;div&gt;In our case, this roughly translates to&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; =SUMX(Sales_data 1, Qty*Unit Price)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s write the Measure.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On the Power Pivot menu, select Measures, New Measure.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8QAT4Yz5pWmTH7dzzyI6ttKawMWGbUy01tSXvQPKZQMnkFsr_KhzWWlx3bbAr0BZpB358wLe2Q3tF-VpGrdnw6mclaqID-qDsBXvBEEIfQrihEAPZJ8Ir6MMXnDyJlmTmEByfsq5gf_f/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;137&quot; data-original-width=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8QAT4Yz5pWmTH7dzzyI6ttKawMWGbUy01tSXvQPKZQMnkFsr_KhzWWlx3bbAr0BZpB358wLe2Q3tF-VpGrdnw6mclaqID-qDsBXvBEEIfQrihEAPZJ8Ir6MMXnDyJlmTmEByfsq5gf_f/d/New+measure.png&quot; title=&quot;Screenshot of Power Pivot Measures menu&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5wq9U1EtIwOm1wlhXr671uyLEH-ogS4Tfg2sS_8OE1vbitnjgztaV9aIHFN7aFtzgBBu0PZFkQTLVqHcXfAbIUGqgRJ6FDWJnm0H-pQ8e43o7pZE5gs5kcySn6So2JcP99ep2CNsJAdgV/s468/Flow2.png&quot; style=&quot;clear: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;45&quot; data-original-width=&quot;468&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5wq9U1EtIwOm1wlhXr671uyLEH-ogS4Tfg2sS_8OE1vbitnjgztaV9aIHFN7aFtzgBBu0PZFkQTLVqHcXfAbIUGqgRJ6FDWJnm0H-pQ8e43o7pZE5gs5kcySn6So2JcP99ep2CNsJAdgV/s16000/Flow2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&amp;nbsp;Name &lt;/b&gt;&lt;/span&gt;the Measure, &quot;Total sales Measure&quot;.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Start the formula with an&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;b&gt;equal &lt;/b&gt;&lt;/span&gt;sign.&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;SUMX&lt;/b&gt; first needs a &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;table&lt;/b&gt;&lt;/span&gt; to reference, so type an open parenthesis, then &#39;Sales_data 1&#39; followed by a comma.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Then, start the &lt;b&gt;expression &lt;/b&gt;by typing Qty.&amp;nbsp; Select &#39;Sales_data 1&#39;[Qty], which is the quantity column from the query.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Add a multiplication sign.&lt;/li&gt;&lt;li&gt;Type &quot;price&quot; and then select &#39;Sales_data 1&#39;[Unit Price].&lt;/li&gt;&lt;li&gt;Close parenthesis.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;Check the formula and assign the value a category.&amp;nbsp; Here&#39;s the solution.&lt;/div&gt;&lt;div&gt;=SUMX(&#39;Sales_data 1&#39;,&#39;Sales_data 1&#39;[Qty]*&#39;Sales_data 1&#39;[Unit Price])&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Br2jJplFXKNGdl3owCiXR4YcA2rSFkNXwiq8go0BjiXb4WpxiEoXyrk3fneLhsP_pB6RF4cQ542dwLJ-WY2325Og1sPt7AU8Pev_OkR8RQZJ_9_lxO3pAklV4zSGog_vpC5shdCGcQhc/s783/Measure+SUMX+Final.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;447&quot; data-original-width=&quot;783&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Br2jJplFXKNGdl3owCiXR4YcA2rSFkNXwiq8go0BjiXb4WpxiEoXyrk3fneLhsP_pB6RF4cQ542dwLJ-WY2325Og1sPt7AU8Pev_OkR8RQZJ_9_lxO3pAklV4zSGog_vpC5shdCGcQhc/s16000/Measure+SUMX+Final.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Return to your Pivot Table, and add in the new Measure.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGNjjWI05YPvToKSA9JMvR5wckUZuh0Ct8ylMnJGYg9w60hCeb3RZtitk58yNW5FbWhq7gs7F7k9QMUQo_oxhlj9VXM_c0v8qQgCQDWpMXKFWhSTyhGclKsCqdozbBE2ciLfCXjWnjibsI/s408/Final+pivot.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;217&quot; data-original-width=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGNjjWI05YPvToKSA9JMvR5wckUZuh0Ct8ylMnJGYg9w60hCeb3RZtitk58yNW5FbWhq7gs7F7k9QMUQo_oxhlj9VXM_c0v8qQgCQDWpMXKFWhSTyhGclKsCqdozbBE2ciLfCXjWnjibsI/s16000/Final+pivot.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Advantages of using Power Pivot Measures instead of native Excel or Power Query to build the Total Sales calculation&lt;/b&gt;&lt;/span&gt; include:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;All the advantages listed above for calculated columns versus native Excel plus the following.&lt;/li&gt;&lt;li&gt;Measures&amp;nbsp;use less memory than calculated columns.&lt;/li&gt;&lt;li&gt;The Power Pivot Data Model compresses data 7 to 10 times smaller than the same data in native Excel.&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Native Excel uses the in-memory analytics engine to store data in memory (hence why large files with complex formulas or multiple Pivots receive resource error messages).&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Measures can be reused in multiple Pivot Tables in the same workbook.&lt;/li&gt;&lt;li&gt;Measures can be referred to in other Measures. For example, if we had to add sales tax of 10%, a Measure could be written to take =Total Sales Measure * 10%.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Measure&lt;/span&gt;Now, let&#39;s calculate Total Sales again, but this time using a Measure instead of a calculated column. The results will be the same, but Measures have additional advantages over native Excel and calculated columns.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The Measure will need to multiply Qty and Unit Price for each row of the data and then sum those products to get a grand total.&amp;nbsp; To achieve this result, we will use a SUMX formula, which is an iterator formula, which iterates through each row of the Table and then sums the total.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The SUMX format is&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;= SUMX(Source Query, function to perform on each row before summing)&lt;/div&gt;&lt;div&gt;In our case, this roughly translates to&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; =SUMX(Sales_data 1, Qty*Unit Price)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s write the Measure.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On the Power Pivot menu, select Measures, New Measure.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8QAT4Yz5pWmTH7dzzyI6ttKawMWGbUy01tSXvQPKZQMnkFsr_KhzWWlx3bbAr0BZpB358wLe2Q3tF-VpGrdnw6mclaqID-qDsBXvBEEIfQrihEAPZJ8Ir6MMXnDyJlmTmEByfsq5gf_f/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;137&quot; data-original-width=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8QAT4Yz5pWmTH7dzzyI6ttKawMWGbUy01tSXvQPKZQMnkFsr_KhzWWlx3bbAr0BZpB358wLe2Q3tF-VpGrdnw6mclaqID-qDsBXvBEEIfQrihEAPZJ8Ir6MMXnDyJlmTmEByfsq5gf_f/d/New+measure.png&quot; title=&quot;Screenshot of Power Pivot Measures menu&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5wq9U1EtIwOm1wlhXr671uyLEH-ogS4Tfg2sS_8OE1vbitnjgztaV9aIHFN7aFtzgBBu0PZFkQTLVqHcXfAbIUGqgRJ6FDWJnm0H-pQ8e43o7pZE5gs5kcySn6So2JcP99ep2CNsJAdgV/s468/Flow2.png&quot; style=&quot;clear: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;45&quot; data-original-width=&quot;468&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5wq9U1EtIwOm1wlhXr671uyLEH-ogS4Tfg2sS_8OE1vbitnjgztaV9aIHFN7aFtzgBBu0PZFkQTLVqHcXfAbIUGqgRJ6FDWJnm0H-pQ8e43o7pZE5gs5kcySn6So2JcP99ep2CNsJAdgV/s16000/Flow2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Name &lt;/b&gt;&lt;/span&gt;the Measure, &quot;Total sales Measure&quot;.&lt;/li&gt;&lt;li&gt;Start the formula with an&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;b&gt;equal&lt;/b&gt; &lt;/span&gt;sign.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;SUMX&lt;/span&gt; &lt;/b&gt;first needs a &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;table&lt;/b&gt;&lt;/span&gt; to reference, so type an open parenthesis, then &#39;Sales_data 1&#39; followed by a comma.&lt;/li&gt;&lt;li&gt;Then, start the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;expression&lt;/b&gt;&lt;/span&gt; by typing Qty. Select &#39;Sales_data 1&#39;[Qty], which is the quantity column from the query.&lt;/li&gt;&lt;li&gt;Add a multiplication sign.&lt;/li&gt;&lt;li&gt;Type &quot;price&quot; and then select &#39;Sales_data 1&#39;[Unit Price].&lt;/li&gt;&lt;li&gt;Close parenthesis.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;Check the formula and assign the value a category.&amp;nbsp; Here&#39;s the solution.&lt;/div&gt;&lt;div&gt;=SUMX(&#39;Sales_data 1&#39;,&#39;Sales_data 1&#39;[Qty]*&#39;Sales_data 1&#39;[Unit Price])&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Br2jJplFXKNGdl3owCiXR4YcA2rSFkNXwiq8go0BjiXb4WpxiEoXyrk3fneLhsP_pB6RF4cQ542dwLJ-WY2325Og1sPt7AU8Pev_OkR8RQZJ_9_lxO3pAklV4zSGog_vpC5shdCGcQhc/s783/Measure+SUMX+Final.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;447&quot; data-original-width=&quot;783&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Br2jJplFXKNGdl3owCiXR4YcA2rSFkNXwiq8go0BjiXb4WpxiEoXyrk3fneLhsP_pB6RF4cQ542dwLJ-WY2325Og1sPt7AU8Pev_OkR8RQZJ_9_lxO3pAklV4zSGog_vpC5shdCGcQhc/s16000/Measure+SUMX+Final.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Return to your Pivot Table, and add in the new Measure.&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGNjjWI05YPvToKSA9JMvR5wckUZuh0Ct8ylMnJGYg9w60hCeb3RZtitk58yNW5FbWhq7gs7F7k9QMUQo_oxhlj9VXM_c0v8qQgCQDWpMXKFWhSTyhGclKsCqdozbBE2ciLfCXjWnjibsI/s408/Final+pivot.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;217&quot; data-original-width=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGNjjWI05YPvToKSA9JMvR5wckUZuh0Ct8ylMnJGYg9w60hCeb3RZtitk58yNW5FbWhq7gs7F7k9QMUQo_oxhlj9VXM_c0v8qQgCQDWpMXKFWhSTyhGclKsCqdozbBE2ciLfCXjWnjibsI/s16000/Final+pivot.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Advantages of using Power Pivot Measures instead of native Excel or Power Query to build the Total Sales calculation&lt;/b&gt;&lt;/span&gt; include:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;All the advantages listed above for calculated columns versus native Excel plus the following.&lt;/li&gt;&lt;li&gt;Measures&amp;nbsp;use less memory than calculated columns.&lt;/li&gt;&lt;li&gt;The Power Pivot Data Model compresses data 7 to 10 times smaller than the same data in native Excel.&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Native Excel uses the in-memory analytics engine to store data in memory (hence why large files with complex formulas or multiple Pivots receive resource error messages).&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Measures can be reused in multiple Pivot Tables in the same workbook.&lt;/li&gt;&lt;li&gt;Measures can be referred to in other Measures. For example, if we had to add sales tax of 10%, a Measure could be written to take =Total Sales Measure * 10%.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
  &lt;hr /&gt;
In this lesson, you learned:&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Calculated columns and Measures can return the same results;&lt;/li&gt;&lt;li&gt;The difference between creating a calculated column and a Measure;&lt;/li&gt;&lt;li&gt;The advantages of creating a Power Query calculated column instead of using native Excel; and,&lt;/li&gt;&lt;li&gt;The advantages of creating Measures instead of using native Excel or Power Query.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhrF9TJi2DZdLm91VSA?e=h1FQJf&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/11/the-power-of-unpivot.html&quot;&gt;The Power of the Unpivot&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2020/08/m-language.html&quot;&gt;M-language&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/6557155956014548964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/09/calculated-columns-vs-measures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/6557155956014548964'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/6557155956014548964'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/09/calculated-columns-vs-measures.html' title='Calculated columns vs Measures'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnUFojarW6OUCgxjbBcyowq5LQZsi28qhWsR3fzTFJ5p2EMIuTJRDHfdRduWWz44iBlkvKUaRxtAsFSpQSat7K2WNyTab12GMsIvK9EKPF4AEaElNoIpYXjDBIg5fdRSMbm0ZwL8mW93V7/s72-c/Flow1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-5686780040202646417</id><published>2019-11-25T10:30:00.008-06:00</published><updated>2021-05-23T22:37:22.759-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><title type='text'>The Power of the Unpivot</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;Just joining? Explore prior lessons&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;A colleague&#39;s jaw literally dropped when I showed him Power Query&#39;s Unpivot functionality.&amp;nbsp; Unpivot transformed many days of work in to a data analysis delivered within hours.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt; The Predicament&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Visualize a report similar to the one below, containing 12 months of data.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu6j4L-3iXWQDrhmVcPYCTHeCY5aYIcqdCMN1bgt5iP6Rzwaq7M9R4aLCekkinhOK20oehOyP7_buZsYophaxL6Bm0kE2iJckYjcgdQKk9ySMgWt3yReo2XsLLVMPldxZI6OxijgRc0PUw/s1600/Original+data+snapshot.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;155&quot; data-original-width=&quot;722&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu6j4L-3iXWQDrhmVcPYCTHeCY5aYIcqdCMN1bgt5iP6Rzwaq7M9R4aLCekkinhOK20oehOyP7_buZsYophaxL6Bm0kE2iJckYjcgdQKk9ySMgWt3yReo2XsLLVMPldxZI6OxijgRc0PUw/s1600/Original+data+snapshot.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The initial report provides data in an orderly and logical format, but it&#39;s very difficult to take this data and answer analytical questions such as:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;What&#39;s been the trend in Net sales, current year versus prior year?&lt;/li&gt;
&lt;li&gt;How have returns trended as a % of sales?&lt;/li&gt;
&lt;li&gt;What does the growth in sales look like in store versus online?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;What would next year&#39;s monthly sales be if sales online grew 5%?&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;The Transformation&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
Transform the flat report to a Pivot Table.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixzMMqjrQ68sVbmaGw98g8xiYTxA0tbzhZuQMJzn56ZGdPCUl-OCblp8kSsmZPznxSx1crchkWPjkve5Sq4ujE0jBpmR2o2KGYpSjwheJeOvMocbZEq2zGh8nHHzJn5ILT5k9oxjr1uf1i/s1600/Flow2.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;240&quot; data-original-width=&quot;699&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixzMMqjrQ68sVbmaGw98g8xiYTxA0tbzhZuQMJzn56ZGdPCUl-OCblp8kSsmZPznxSx1crchkWPjkve5Sq4ujE0jBpmR2o2KGYpSjwheJeOvMocbZEq2zGh8nHHzJn5ILT5k9oxjr1uf1i/s1600/Flow2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transformation step-by-step follows.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgicqsYgSghD9CseZ0R1G3hcB52aT6EMJOhq9RVT1X0aCE1RlPaxaJwTn8Dd_sF0qE0kLPUTOGRuGQGMBJZb0YtSKZXizuLN0t2WMOVGVTa_huE0aASnAhE039b4Y0hsc0mT7PYfmJOh-lg/s1600/Flow1.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;55&quot; data-original-width=&quot;484&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgicqsYgSghD9CseZ0R1G3hcB52aT6EMJOhq9RVT1X0aCE1RlPaxaJwTn8Dd_sF0qE0kLPUTOGRuGQGMBJZb0YtSKZXizuLN0t2WMOVGVTa_huE0aASnAhE039b4Y0hsc0mT7PYfmJOh-lg/s1600/Flow1.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Load the initial report&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
Download the initial report by selecting the&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;↑ &lt;/b&gt;&lt;/span&gt;below.&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;220&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%21101854&amp;amp;authkey=%21ALUtJ_5vNHYfc2g&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;ActiveCell=&#39;Initial%20report&#39;!A1&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;330&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;↑&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;load&lt;/span&gt;&lt;/b&gt; the initial report to Power Query, start with your cursor inside the Excel Table, Initial_Table.&amp;nbsp; On the Excel ribbon, go to the Data tab and select &quot;From Table/Range&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCnPAPQcjiN7kgUk3PGqssvsZAI6ub7pJkV4Pd5MxwAbNxFIpVnwEMyp2D9rO02sB2aZEqrD8cKFqPjy6_yrvpWnyHGzSIqYgDLEEuboPRlFj3QLpFfdK9czr5r7Y2nsXlf1X7m2FB-hPv/s1600/Get+Data+from+Table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;162&quot; data-original-width=&quot;395&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCnPAPQcjiN7kgUk3PGqssvsZAI6ub7pJkV4Pd5MxwAbNxFIpVnwEMyp2D9rO02sB2aZEqrD8cKFqPjy6_yrvpWnyHGzSIqYgDLEEuboPRlFj3QLpFfdK9czr5r7Y2nsXlf1X7m2FB-hPv/s1600/Get+Data+from+Table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Process the data&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZVVuKUJaMMOyhivT4ZYcxXu8PYKwnRl4t6cys7I03pZNXGKR2NmqCkFCEFZvqThjym34ybB9_cnB4OO5JdYfg-dY4_JvTIKwDNU1Wg02M9MG8gXVtGY3PDZ9KEYirpoWdzLZ7K1bCmbM5/s1600/Flow2.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;50&quot; data-original-width=&quot;699&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZVVuKUJaMMOyhivT4ZYcxXu8PYKwnRl4t6cys7I03pZNXGKR2NmqCkFCEFZvqThjym34ybB9_cnB4OO5JdYfg-dY4_JvTIKwDNU1Wg02M9MG8gXVtGY3PDZ9KEYirpoWdzLZ7K1bCmbM5/s1600/Flow2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Process&lt;/span&gt;&lt;/b&gt; the data using Power Query.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmpDf9oByVnuA4gXjPvvW-rZqFGegzIVpCmTiDcbYeMsEWCsiGApxMMwOcOZqI_0yDFt6yWph9pt9BiKgz69aphCPOETLCLZpVFxHBX28FP2mJLKagNYICrNPOUvtwas6ItwqIF4FNqAaw/s1600/Rename+Query.PNG&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;135&quot; data-original-width=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmpDf9oByVnuA4gXjPvvW-rZqFGegzIVpCmTiDcbYeMsEWCsiGApxMMwOcOZqI_0yDFt6yWph9pt9BiKgz69aphCPOETLCLZpVFxHBX28FP2mJLKagNYICrNPOUvtwas6ItwqIF4FNqAaw/s1600/Rename+Query.PNG&quot; /&gt;&lt;/a&gt;&lt;i&gt;Modify the defaults&lt;/i&gt;&lt;br /&gt;
By default, PQ names the Query the Table name and assigns a Type to each column.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Rename&lt;/b&gt;&lt;/span&gt; the Query, &quot;Report_data&quot; by selecting the default Name and typing over with the new name.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir7ItAEgF6VXCsZxjbgu7ZLqvfB1nsjZq-xaDTaTJPgWWbtqX_Auoah0egf2T5poNHu2rHQamaDe46lYdjEO_isFn-vq4aw3Wf0z8AXSDN-HIVsIhUIRY0u1DxRq8oIKm72VBcehfSN1TA/s1600/Changed+Type+Applied+Steps.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;90&quot; data-original-width=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir7ItAEgF6VXCsZxjbgu7ZLqvfB1nsjZq-xaDTaTJPgWWbtqX_Auoah0egf2T5poNHu2rHQamaDe46lYdjEO_isFn-vq4aw3Wf0z8AXSDN-HIVsIhUIRY0u1DxRq8oIKm72VBcehfSN1TA/s1600/Changed+Type+Applied+Steps.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Delete&lt;/span&gt;&lt;/b&gt; the Applied Step &quot;Changed Type&quot; by selecting the &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Red X&lt;/b&gt;&lt;/span&gt; next to the &quot;Changed Type&quot; step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt; &lt;i&gt;Create a Month column&lt;/i&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ6It_IIeh42LMxDx-U9nuPUDaJOz-OalrW0wuZz-XhJCT557a0EiDkiA6S42VhB0nt68xqqJm3mRjA45zHtIyIhXPI3XKGQO9_XQLX5yrbH3RzozyoV68pIk-0RHSzugVrDSkh3KG4tNS/s1600/Transpose.PNG&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;59&quot; data-original-width=&quot;98&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ6It_IIeh42LMxDx-U9nuPUDaJOz-OalrW0wuZz-XhJCT557a0EiDkiA6S42VhB0nt68xqqJm3mRjA45zHtIyIhXPI3XKGQO9_XQLX5yrbH3RzozyoV68pIk-0RHSzugVrDSkh3KG4tNS/s1600/Transpose.PNG&quot; /&gt;&lt;/a&gt;Select Column1 and then on the Transform tab, select &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Transpose&lt;/span&gt;&lt;/b&gt;.&amp;nbsp; This flips the Month+Year into the first column of the query.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNjsO7Hnfr8biaoZv0jbch3OySNXvhYOlCUcargUUa4GNF2Q0HeojgRzb1gHJ1c1kUGtcCTSUq3NJ2cfvUAK4abahvddKYR8ho320r_gwR9rzhT5015UWOpXh-_zSUYxKYK2EX5tmI7epL/s1600/Fill+Down.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;116&quot; data-original-width=&quot;388&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNjsO7Hnfr8biaoZv0jbch3OySNXvhYOlCUcargUUa4GNF2Q0HeojgRzb1gHJ1c1kUGtcCTSUq3NJ2cfvUAK4abahvddKYR8ho320r_gwR9rzhT5015UWOpXh-_zSUYxKYK2EX5tmI7epL/s1600/Fill+Down.PNG&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Select Column1 again and then on the Transform tab, select &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Fill, Down&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt; &lt;i&gt;&lt;br /&gt;
&lt;/i&gt; &lt;i&gt;Some quick clean-up&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4b_EFr6cn_wX4siddsIHVodoMEHzWbu7GS6CReGKDQQzki75oIcxVC7YVboGwtbzG16wZFm1kl808ZY6t0JU9dctfhFBFHkehTcnFqtTZQ8oRTZif7GO88H5kUeECxHUvXWXH13m2HLJG/s1600/Promoted+Headers.PNG&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;95&quot; data-original-width=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4b_EFr6cn_wX4siddsIHVodoMEHzWbu7GS6CReGKDQQzki75oIcxVC7YVboGwtbzG16wZFm1kl808ZY6t0JU9dctfhFBFHkehTcnFqtTZQ8oRTZif7GO88H5kUeECxHUvXWXH13m2HLJG/s1600/Promoted+Headers.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
On the Transform or Home tab, select &quot;Use First Row as &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Headers&lt;/span&gt;&lt;/b&gt;&quot;.&amp;nbsp; When the headers are promoted, PQ applies the Change Type step.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Delete&lt;/span&gt;&lt;/b&gt;&amp;nbsp;the Applied Step &quot;Changed Type1&quot; by selecting the&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Red X&lt;/b&gt;&lt;/span&gt;&amp;nbsp;next to the &quot;Changed Type1&quot; step.&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;The Unpivot&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
Compare the query immediately before and after performing the Unpivot function.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;i&gt;Before&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUAwin0FduwJVJiqUWP7_e1PvwK30-uD9wj-Xo0L0PNQTn2Y-mN7kmJWrNmERPjOyKWsbZoKoAVuQ6UzJt67dkw273xWUka0tr_hyphenhyphenKeoLOpfW-va8wt5x9CUQLRkXKUcAgkCOpnNP22qyt/s1600/Query+before+Unpivot.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;195&quot; data-original-width=&quot;838&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUAwin0FduwJVJiqUWP7_e1PvwK30-uD9wj-Xo0L0PNQTn2Y-mN7kmJWrNmERPjOyKWsbZoKoAVuQ6UzJt67dkw273xWUka0tr_hyphenhyphenKeoLOpfW-va8wt5x9CUQLRkXKUcAgkCOpnNP22qyt/s1600/Query+before+Unpivot.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;i&gt;After&lt;/i&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXv6pHwWXHZBa3ZDtwdjuAuRM_gOwalPLM9Vt38tfyyhSQHzbV_Yg2GZym8deFL71PPeLQELtu0cbFU1v4LjQVuVWZ1tBJJcmeSGo5DgiySZ_nGhkkhJI81u9aEm0wH-sp7_ROQOaE6LaI/s1600/Query+after+Unpivot.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;192&quot; data-original-width=&quot;837&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXv6pHwWXHZBa3ZDtwdjuAuRM_gOwalPLM9Vt38tfyyhSQHzbV_Yg2GZym8deFL71PPeLQELtu0cbFU1v4LjQVuVWZ1tBJJcmeSGo5DgiySZ_nGhkkhJI81u9aEm0wH-sp7_ROQOaE6LaI/s1600/Query+after+Unpivot.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Unpivot took the column headers (with the exception of Column1 and Column2) and flipped them in to a new Attribute column, placing the amounts in to a single Value column.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Now, each row represents a single Value with a unique set of characteristics&lt;/b&gt;&lt;/span&gt;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
To perform the &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Unpivot&lt;/span&gt;&lt;/b&gt;, select Column1 and Column2.&amp;nbsp; On the Transform tab, select &quot;Unpivot Other Columns&quot;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhakMgC73Z17DZxMn2I5DRyAAb-fYNQUOd4NC6K2V5K-JJXkp2IM5RPvMQgAivnORnDOxV1zrMn_r7sbtSz96P1tFAYaiwv75FFDkPGrQ9w8HRzwLiacgSsUsOk8jSTz5rd9IwoD0Bl-BmR/s1600/Unpivot+Other+Columns.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;126&quot; data-original-width=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhakMgC73Z17DZxMn2I5DRyAAb-fYNQUOd4NC6K2V5K-JJXkp2IM5RPvMQgAivnORnDOxV1zrMn_r7sbtSz96P1tFAYaiwv75FFDkPGrQ9w8HRzwLiacgSsUsOk8jSTz5rd9IwoD0Bl-BmR/s1600/Unpivot+Other+Columns.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Polish the Presentation&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Polish&lt;/span&gt;&lt;/b&gt; the query and enhance its analytical usefulness with these steps.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Split the Month+Year in to separate columns.&amp;nbsp; Select Column1.&amp;nbsp; On the Transform tab, select Split Column, By Delimiter, Space &amp;amp; Left Most.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Rename the columns to Month, Year, Scenario, Sales type, and Amount.&lt;/li&gt;
&lt;li&gt;Change the data type of the Amount column to Decimal Number.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Filter out the Sales type of &quot;Net sales&quot;.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Close &amp;amp; Load To a Pivot Table, or as a Connection Only, Add to the Data Model.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Analyze&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
Use a Pivot Table (and measures) to &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;analyze&lt;/span&gt;&lt;/b&gt; the data.&lt;div&gt;&lt;br /&gt;
&lt;hr /&gt;
In this lesson, you learned how to:
&lt;li&gt;Change the layout of a query by unpivoting columns (flipping columns to rows);
&lt;/li&gt;&lt;li&gt;Convert a flat table layout to a layout where each row represents a single value with a unique set of characteristics.&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li&gt;Transform data using Fill Down and &quot;Use First Row as Headers&quot;;&amp;nbsp;&lt;/li&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhp1O3euDxmQlBoYAJw?e=gBVBTo&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Prior post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/09/distinguishing-datasets-in-power-pivot.html&quot;&gt;Distinguishing datasets in Power Pivot&lt;/a&gt;&lt;br /&gt;
Next post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/09/calculated-columns-vs-measures.html&quot;&gt;Calculated Columns vs Measures&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/5686780040202646417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/11/the-power-of-unpivot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5686780040202646417'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5686780040202646417'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/11/the-power-of-unpivot.html' title='The Power of the Unpivot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu6j4L-3iXWQDrhmVcPYCTHeCY5aYIcqdCMN1bgt5iP6Rzwaq7M9R4aLCekkinhOK20oehOyP7_buZsYophaxL6Bm0kE2iJckYjcgdQKk9ySMgWt3yReo2XsLLVMPldxZI6OxijgRc0PUw/s72-c/Original+data+snapshot.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-4737575091846284146</id><published>2019-09-30T15:35:00.022-05:00</published><updated>2021-05-15T02:18:02.036-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><title type='text'>Distinguishing datasets in Power Pivot</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Just joining? Explore prior lessons&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/p/start-here.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
When building a Pivot Table using&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue;&quot;&gt;Power Pivot, a key advantage is the ability to combine multiple datasets in one Pivot Table.&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8okwRfR-0LtKa9Yc5Hth-K25ak9yHeqQAiPXdp6ztnhyphenhypheneQem7a-brXGnKKHDsQWsca1wATBNKEYsHiGZwoKebhM9yz4wMA-o6bkvnJAYwByUcWEKjotW9qLKXNTRzva9NE_YyJCiL9j5i/s1600/Pivot+table+datasets.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;234&quot; data-original-width=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8okwRfR-0LtKa9Yc5Hth-K25ak9yHeqQAiPXdp6ztnhyphenhypheneQem7a-brXGnKKHDsQWsca1wATBNKEYsHiGZwoKebhM9yz4wMA-o6bkvnJAYwByUcWEKjotW9qLKXNTRzva9NE_YyJCiL9j5i/s1600/Pivot+table+datasets.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
However, it can be very easy to end up with &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;multiple datasets with virtually the same name&lt;/b&gt;&lt;/span&gt;. This can result in a user selecting the wrong dataset.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s explore the three similarly named datasets shown above.&lt;br /&gt;
&lt;h3&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;The Data Model&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhscJOfuKLadFTCUVO55hDurcK8tUbV9Lhc76OCzPDmuNR8q0CZoEhf_yeB0nPJqgs7BRtOAQXlFOQEygOBHs0wXotmxLh-djDZheU05mmFDMjUYj18wS7LHUY85xcVpTWsBqTAbxmBJcjC/s1600/Data+Flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;51&quot; data-original-width=&quot;524&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhscJOfuKLadFTCUVO55hDurcK8tUbV9Lhc76OCzPDmuNR8q0CZoEhf_yeB0nPJqgs7BRtOAQXlFOQEygOBHs0wXotmxLh-djDZheU05mmFDMjUYj18wS7LHUY85xcVpTWsBqTAbxmBJcjC/s1600/Data+Flow.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
This scenario started with an Excel Table named Sales_data.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaoE5lobAt-5uAQ_BQuUa-IB2qG-Ej3mAiZgp_vVOBwI1_TCSVyCCXzPwXDB-4KyoKA1SVqyw09nDxC0BJdkgPAFvu6-bRT0wIBHBRyTksZ8M-Q2vl1-9gMPP3ac-r9Ds9pAo2G665lwtZ/s1600/Table+Name.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;304&quot; data-original-width=&quot;245&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaoE5lobAt-5uAQ_BQuUa-IB2qG-Ej3mAiZgp_vVOBwI1_TCSVyCCXzPwXDB-4KyoKA1SVqyw09nDxC0BJdkgPAFvu6-bRT0wIBHBRyTksZ8M-Q2vl1-9gMPP3ac-r9Ds9pAo2G665lwtZ/s1600/Table+Name.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;Then, the &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;Excel Table was loaded&lt;/span&gt;&lt;/b&gt; to Power Query, &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;creating a query&lt;/span&gt;&lt;/b&gt; named Sales_data.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPbz78sRoYffcwo5_CUKw-inJyolejJd3AhCSHo9fuMRNwtqstzfws6fImP6sWsXFhWLQv4malqzUktHEtbyxH4K5DQzbp6dTi7U7zePL0VCxqT5iYMHvlsiD8cFUt14s8B2O37YAZ9vJV/s1600/Query+name.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;126&quot; data-original-width=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPbz78sRoYffcwo5_CUKw-inJyolejJd3AhCSHo9fuMRNwtqstzfws6fImP6sWsXFhWLQv4malqzUktHEtbyxH4K5DQzbp6dTi7U7zePL0VCxqT5iYMHvlsiD8cFUt14s8B2O37YAZ9vJV/s1600/Query+name.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Once work was complete in Power Query, the query was Closed &amp;amp; &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;Loaded as a Table&lt;/span&gt;&lt;/b&gt; and added to the Data Model.&amp;nbsp; The output Table by default was named Sales_data_2.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg26raE6-uW3rMAMgLNpFohTSdUCkIiyUQ5yb4KT4sgG1dKVbMPvpQ5LYufzalAVZjvMnWEPRlTZcsrv3ScBlCRSAX8ALf5m1VIolsvrPf2xj_-VkqUA_3y8qCQPIjLJxiktXzr01M3-caZ/s1600/Output+Query+Name.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;297&quot; data-original-width=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg26raE6-uW3rMAMgLNpFohTSdUCkIiyUQ5yb4KT4sgG1dKVbMPvpQ5LYufzalAVZjvMnWEPRlTZcsrv3ScBlCRSAX8ALf5m1VIolsvrPf2xj_-VkqUA_3y8qCQPIjLJxiktXzr01M3-caZ/s1600/Output+Query+Name.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;A Power Pivot Table&lt;/span&gt;&lt;/h3&gt;
Next, a Pivot Table was created using the Data Model.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp9LhDwFFRg6K7l5H9PILHGBEk39NLOjMWhH7ok8-ddfMT4-364OD62rHF8FyCGvltpv8lCY_h8PEeoL6qmnGDLpf0hCD-zUF_oAucAc7myNqmItyTKTBEMTJIV1JikNp3CNUrZ_7YK45y/s1600/Create+pivot+table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;354&quot; data-original-width=&quot;395&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp9LhDwFFRg6K7l5H9PILHGBEk39NLOjMWhH7ok8-ddfMT4-364OD62rHF8FyCGvltpv8lCY_h8PEeoL6qmnGDLpf0hCD-zUF_oAucAc7myNqmItyTKTBEMTJIV1JikNp3CNUrZ_7YK45y/s1600/Create+pivot+table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The result is there are now 3 datasets to choose from when building a Pivot Table.&amp;nbsp; This occurred because the Table, query, and output query are all part of the Data Model (the source for a Power Pivot Table).&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgss6KFdmy0d0WggohNmo4P40fLrK14Edlte0Bu44uItnGmgxuimfhNOVRNn-sSZE1QSYgughe2fy2lwzfazr-ZCMlRgY2mnGGvS1EFPIvUKGccffTikJ05N0qW8ZVbWO-30z09nRNkyP6j/s1600/Pivot+table+datasets.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;234&quot; data-original-width=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgss6KFdmy0d0WggohNmo4P40fLrK14Edlte0Bu44uItnGmgxuimfhNOVRNn-sSZE1QSYgughe2fy2lwzfazr-ZCMlRgY2mnGGvS1EFPIvUKGccffTikJ05N0qW8ZVbWO-30z09nRNkyP6j/s1600/Pivot+table+datasets.PNG&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;color: red; font-size: xx-large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Which one is which?&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
The first dataset has an icon which resembles an Excel Table with a database icon.&amp;nbsp; Hovering over the first dataset name tells us the source for this dataset is &quot;Query - Sales_data&quot;.&amp;nbsp; This is the database query which was created in Power Query.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;When building a Power Pivot Table, use the dataset sourced from the query; it is differentiated by the database icon.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu5f_9lQrFl7Efs3LNR70tsbFYL9DMH8eLYDCrKHef9Pf9s3Ji-Yqh9NsTrp3AtfrVktuIxMvgxaaKBxiR9JvfhSfhgDta2xJ77sUbFSK3plW_h3KNUfedtFw2BQQyHuAE18exNmguTDxg/s1600/Hover+1st+dataset.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;230&quot; data-original-width=&quot;324&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu5f_9lQrFl7Efs3LNR70tsbFYL9DMH8eLYDCrKHef9Pf9s3Ji-Yqh9NsTrp3AtfrVktuIxMvgxaaKBxiR9JvfhSfhgDta2xJ77sUbFSK3plW_h3KNUfedtFw2BQQyHuAE18exNmguTDxg/s1600/Hover+1st+dataset.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;While we won&#39;t pull the second and third datasets in to a Pivot Table, it is important to understand what these datasets represent. Hovering over the second dataset tells us this Sales_data&#39;s source was a Table, named Sales_data, which can be found on the Sales tab in cells A1:C7.&amp;nbsp; This is the original Excel Table.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbQ9u2b8uaCOHJvxBUcBJCuOkHK8aI-LHxfSZq0BRYDEN20xEKxyeAlLs7CXoUdhCv8rZ3xWH0hwIKLeUXiz7v1a1RVEyjSrECnzdoVFrDhbFVyjn5EVZ25q0zJBG8JHJ953cE6HZ-9H8X/s1600/Hover+2nd+dataset.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;230&quot; data-original-width=&quot;332&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbQ9u2b8uaCOHJvxBUcBJCuOkHK8aI-LHxfSZq0BRYDEN20xEKxyeAlLs7CXoUdhCv8rZ3xWH0hwIKLeUXiz7v1a1RVEyjSrECnzdoVFrDhbFVyjn5EVZ25q0zJBG8JHJ953cE6HZ-9H8X/s1600/Hover+2nd+dataset.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Hovering over the final dataset reveals the source as the Table, Sales_data_2, which is on the Query Output tab in cells A1:D7.&amp;nbsp; This is the Table which was the output of the query when Power Query was Closed &amp;amp; Loaded To.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinShElczxNOSkobGb1C7b277AYynwP_nlOTFW1G27ldXC_wyRxtAkkBiNeSjzpiNBnhTHdXWc0eHhb4wWnp9FJnqkhsENfc1N-5I1y8iD91R7Tkbn4dHvzCrI0sQ1aI7-jps_MbBEOFE95/s1600/Hover+3rd+dataset.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;255&quot; data-original-width=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinShElczxNOSkobGb1C7b277AYynwP_nlOTFW1G27ldXC_wyRxtAkkBiNeSjzpiNBnhTHdXWc0eHhb4wWnp9FJnqkhsENfc1N-5I1y8iD91R7Tkbn4dHvzCrI0sQ1aI7-jps_MbBEOFE95/s1600/Hover+3rd+dataset.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Hiding &quot;extra&quot; datasets&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
Now that you know which dataset to choose, prevent future errors by hiding the other datasets from yourself and others.&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhafOZdKMzNe_NTRbtvQhJtl9NECHoYFQdeExadcWmdg1E6TXQGizYdjmIhKMmM-pBfQ_OxgTDyGqsvv4XqW6HxI5M_D69CPks8C3QCfKjlKPOLJqYrmlXg0Hj9l_7PsmkqHtYEk5fnat0k/s1600/Manage+Power+Pivot.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;71&quot; data-original-width=&quot;63&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhafOZdKMzNe_NTRbtvQhJtl9NECHoYFQdeExadcWmdg1E6TXQGizYdjmIhKMmM-pBfQ_OxgTDyGqsvv4XqW6HxI5M_D69CPks8C3QCfKjlKPOLJqYrmlXg0Hj9l_7PsmkqHtYEk5fnat0k/s1600/Manage+Power+Pivot.PNG&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil4IgI_bGZ7xhnZBgVm-2F7Dz1-qPvrVjjwozE1IiEGo6vPKpCCFa42BFesfzKFxO8KV7HHhlHCPcGIEmG5N0a4MiiySmKdj0fJyvTUDI1ETVLX1FcPMlLzXgVs9PLjE7BVUQAQe0VQmmy/s1600/PP+dataset+names.PNG&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;29&quot; data-original-width=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil4IgI_bGZ7xhnZBgVm-2F7Dz1-qPvrVjjwozE1IiEGo6vPKpCCFa42BFesfzKFxO8KV7HHhlHCPcGIEmG5N0a4MiiySmKdj0fJyvTUDI1ETVLX1FcPMlLzXgVs9PLjE7BVUQAQe0VQmmy/s1600/PP+dataset+names.PNG&quot; /&gt;&lt;/a&gt;On the Power Pivot tab, select Manage.&amp;nbsp; In the Power Pivot data view, Microsoft decided to make things really confusing by renaming the 2nd dataset to Sales_data1.&amp;nbsp; Next steps, we are looking to keep only Sales_data visible in the Pivot Table fields.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg88Sd6HYc9067JszOsG6By_mQiLPJZ6ohIPwsKlxZtG-QSKM4fxHeikrcPPoEbs1wwDEmaTvFKfaKOYoYanuOWyOyezpIZwvu5OcXuMaEsMP5EF6RdaM96IfJzfqmzqzEGHKHDfy5qLxsM/s1600/Hide+From+Client+Tools.PNG&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;55&quot; data-original-width=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg88Sd6HYc9067JszOsG6By_mQiLPJZ6ohIPwsKlxZtG-QSKM4fxHeikrcPPoEbs1wwDEmaTvFKfaKOYoYanuOWyOyezpIZwvu5OcXuMaEsMP5EF6RdaM96IfJzfqmzqzEGHKHDfy5qLxsM/s1600/Hide+From+Client+Tools.PNG&quot; /&gt;&lt;/a&gt;Right click on the tab named Sales_data1.&amp;nbsp; Select the option &quot;Hide from Client Tools&quot;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0oDkpTZFanwGTdnsSp3U4W_y0SY37G3hI_0IwdClPjRdmjBxuFHu2hTuToJaDF3OaIf678W300fkioReJFW-cUii6HoY4Y8AGn8hkiiBVAsl_hdCvIqA8kyqQNZ2icTOmdgdfofg_WNO8/s1600/Pivot+Fields+after+hiding.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;178&quot; data-original-width=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0oDkpTZFanwGTdnsSp3U4W_y0SY37G3hI_0IwdClPjRdmjBxuFHu2hTuToJaDF3OaIf678W300fkioReJFW-cUii6HoY4Y8AGn8hkiiBVAsl_hdCvIqA8kyqQNZ2icTOmdgdfofg_WNO8/s1600/Pivot+Fields+after+hiding.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;Repeat with the tab Sales_data2.&amp;nbsp; Then close.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Now only the query dataset is visible.&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Prevention&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV0JFPQFZM0ZM51vjGsMnDvWGu7JED4b_Y4X7AMY33Br60YQFg2oFCtH2kF1i-hHroh8u9CJjiie0HURvbKi1okPzPu6nEX0wHs6Cq41JgwQao5_NdsCVfAIY68wU-iCRvigZ98pYOrtBS/s1600/Data+Flow+preventive.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;55&quot; data-original-width=&quot;680&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV0JFPQFZM0ZM51vjGsMnDvWGu7JED4b_Y4X7AMY33Br60YQFg2oFCtH2kF1i-hHroh8u9CJjiie0HURvbKi1okPzPu6nEX0wHs6Cq41JgwQao5_NdsCVfAIY68wU-iCRvigZ98pYOrtBS/s1600/Data+Flow+preventive.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;Above we identified three sources of datasets: the input Excel Table (or source), the query created from the source, and the output Excel Table created from the query. However, the dataset sourced from the query is almost always the only one we need.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can avoid two of three scenarios from occurring by altering the input and the output:&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Change the input.&amp;nbsp; &lt;/b&gt;Instead of starting in the workbook which contains the Sales_data table, create a new workbook.&amp;nbsp; Then, &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;load the table to Power Query From File, From Workbook&lt;/span&gt;&lt;/b&gt;. This &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;creates the query&lt;/span&gt;&lt;/b&gt;, but eliminates the dataset created from the Excel Table, or source.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Change the output.&lt;/b&gt;&amp;nbsp; When you Close &amp;amp; Load the query, &lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;load to a Pivot Table or Connection Only&lt;/span&gt;&lt;/b&gt;. This eliminates the dataset created from the output Excel Table created from the query.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
&lt;hr /&gt;
In this lesson, you learned how to:&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Identify a dataset created from a Power Query query;&lt;/li&gt;&lt;li&gt;Distinguish between datasets created from Excel Tables, from queries, and from the Close &amp;amp; Load as a Table process;&amp;nbsp;&lt;/li&gt;&lt;li&gt;Hide datasets which aren&#39;t needed; and,&lt;/li&gt;&lt;li&gt;Prevent multiple versions of similar datasets from showing in a Pivot Table.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho5txvFyK2tfV6j-AQ?e=3zJylA&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/08/whats-killing-my-excel.html&quot;&gt;What&#39;s Killing My Excel?&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/11/the-power-of-unpivot.html&quot;&gt;The Power of Unpivot&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/4737575091846284146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/09/distinguishing-datasets-in-power-pivot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4737575091846284146'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4737575091846284146'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/09/distinguishing-datasets-in-power-pivot.html' title='Distinguishing datasets in Power Pivot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8okwRfR-0LtKa9Yc5Hth-K25ak9yHeqQAiPXdp6ztnhyphenhypheneQem7a-brXGnKKHDsQWsca1wATBNKEYsHiGZwoKebhM9yz4wMA-o6bkvnJAYwByUcWEKjotW9qLKXNTRzva9NE_YyJCiL9j5i/s72-c/Pivot+table+datasets.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-365214616612783008</id><published>2019-08-25T17:00:00.013-05:00</published><updated>2021-10-16T23:31:52.044-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PQ"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Troubleshooting"/><title type='text'>What&#39;s killing My Excel?</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Across the globe, Excel crashing is an accountant or analyst&#39;s bane.&amp;nbsp;I&#39;ve been there and know how exhausting it can be.&amp;nbsp; Fortunately (knock on wood), I&#39;ve found some tips which have virtually eliminated crashing for me.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;div&gt;
&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Get 64-bit Excel&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Disable add-ins &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Prioritize Excel&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Check your resource monitor&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Get 64-bit Excel&lt;/span&gt;&lt;/h3&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;The #1 way to fix Excel crashing issues is to install the 64-bit version of Excel on Office 365.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;By default, IT departments across the globe install the 32-bit version of Excel on Office 365.&amp;nbsp; While that&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;works for most, &lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Excel&#39;s&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;32-bit version is not sufficient for running the more complex Excel workbooks used by finance and accounting teams.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff8a11; font-weight: bold;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt; See this &lt;a href=&quot;https://support.microsoft.com/en-us/help/3066990/memory-usage-in-the-32-bit-edition-of-excel-2013-and-2016&quot; target=&quot;_blank&quot;&gt;Microsoft Office article&lt;/a&gt; about why multiple Pivot Tables, slicers and VLOOKUPs can constrain your Excel resources.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Finance and Accounting users are frequently the largest Excel consumers, but your IT support team may not realize it when deploying PCs to users.&amp;nbsp; If your Finance and Accounting teams aren&#39;t using 64-bit Excel today, there may be some support team resistance to making the change and deploying 64-bit.&amp;nbsp; Historically, Microsoft Office recommended 32-bit installs by default; however, it did not apply to power users like Finance and Accounting teams.&amp;nbsp; Here&#39;s a&amp;nbsp;&lt;a href=&quot;https://support.office.com/en-gb/article/choose-between-the-64-bit-or-32-bit-version-of-office-2dee7807-8f95-4d0c-b5fe-6c6f49b8d261&quot; target=&quot;_blank&quot;&gt;link to another Microsoft Office article&lt;/a&gt;&amp;nbsp;which might help persuade.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Incapability with &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;existing add-ins, such as Hyperion Essbase, is the primary issue which may need to be addressed.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;First, I recommend seeing if there is a 64-bit version of your add-in.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;If not, consider installing anyway and testing the impact.&lt;/li&gt;&lt;li&gt;If impacted, explore with your IT team other solutions, such as a 32-bit Excel version with the add-in installed inside a Citrix environment and the 64-bit Excel version on your desktop.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;If you are experiencing install setbacks, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;b&gt;don&#39;t give up;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt; &lt;/b&gt;I assure you the 64-bit version is worth it.&amp;nbsp; While you wait for IT to validate add-ins, try one of the other solutions below.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d; font-family: inherit;&quot;&gt;Disable Add-Ins&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Excel Add-ins sometimes behave badly, especially when the version of Excel the add-in was built on and the current user version of Excel deviate.&amp;nbsp; This seems to be especially true in the Office 365 environment where updates can occur monthly.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: inherit;&quot;&gt;Initially, try disabling all&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;add-ins and turning them on only when needed.&amp;nbsp; To effectuate, in Excel go to File, Options, Add-ins, Manage, Excel Add-ins, Go.&amp;nbsp; Uncheck all the add-ins.&amp;nbsp; Next, repeat these steps, but select Manage, COM Add-ins, Go.&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;💥BEST PRACTICE TIP&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: inherit;&quot;&gt;Speed up the add-in disabling process by adding a short-cut to your Excel Quick Access Toolbar.&amp;nbsp; In Excel, go to File, Options, Quick Access Toolbar, Choose commands from: All Commands, Add-ins (the first one, which has no icon &amp;amp; a drop down menu). 💥&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt; &lt;span style=&quot;font-family: inherit;&quot;&gt;When Excel crashes, keep track of which add-ins, if any, were enabled.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Once an add-in has been identified as a culprit, work with your IT team to address.&amp;nbsp; In the meantime, whenever you need to enable the suspect add-in, save backup copies often.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If Excel crashes at the same frequency when the add-ins are disabled, then add-ins is likely not your primary culprit; read further and see if one of the other solutions helps.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d; font-family: inherit;&quot;&gt;Prioritize Excel&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;All running applications share processor time.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Tell your computer to give Excel more love by changing the priority level.&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Use Ctrl+Alt+Del to open Task Manager.&amp;nbsp; On the Details tab, right click on Excel.exe process.&amp;nbsp; Choose Set Priority.&amp;nbsp; Then, select either High or Above Normal.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: inherit;&quot;&gt;The priority auto-resets to Normal whenever Excel is restarted making this a temporary solution at best.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;While it may be tempting to choose Real Time, rumor has it that this will make your other applications jealous, your CPU&#39;s head spin, and your PC crash.&amp;nbsp; 💔&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d; font-family: inherit;&quot;&gt;Check your resource monitor &lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Return to Task Master.&amp;nbsp; On the bottom of the Performance tab, select &quot;Open Resource Monitor&quot;.&amp;nbsp; This tool provides utilization visuals for the processes running on your machine.&amp;nbsp; Choose the Overview tab and keep the 4 charts open and visible while you work.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;When the Resource Monitor charts are at their maximums for an extended period of time, drill down on the applicable Resource Monitor tab to try and isolate what is dragging you down.&lt;/b&gt;&lt;/span&gt;&amp;nbsp; With data in hand, partner with IT support to achieve improved performance.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;
&lt;span&gt;In this lesson, you learned how to eliminate Excel crashes by:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Installing 64-bit Excel,&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Disabling add-ins,&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Prioritizing Excel, and&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-top: 0px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Checking your resource monitor.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/measures-inside-measures.html&quot;&gt;Measures Inside Measures&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
Next post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/09/distinguishing-datasets-in-power-pivot.html&quot;&gt;Distinguishing datasets in Power Pivot&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
💬Always love hearing how others have tackled Excel performance issues.&amp;nbsp; Drop a comment below to share.&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/365214616612783008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/08/whats-killing-my-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/365214616612783008'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/365214616612783008'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/08/whats-killing-my-excel.html' title='What&#39;s killing My Excel?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-1450862542980578033</id><published>2019-06-14T07:00:00.007-05:00</published><updated>2021-10-16T22:36:03.210-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Measures"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>Measures inside Measures</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;This is the final post of the&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Intro to Power Pivot series&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;.&amp;nbsp; Jump to the 1st post of the series&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwJgrVozl9JnPr1J1RJOP_sFC9if-v1aP_L8IhbC2mR0OetpNTmQHKPA4-tj_gRd93od_YaPDsYyuD0v_bS-L-M3YOplWhzM8mnEhBL3F-7lUG8k890g_3OpaRudQECQJuMb88ZY4ABGyF/s1600/Flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;56&quot; data-original-width=&quot;857&quot; height=&quot;41&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwJgrVozl9JnPr1J1RJOP_sFC9if-v1aP_L8IhbC2mR0OetpNTmQHKPA4-tj_gRd93od_YaPDsYyuD0v_bS-L-M3YOplWhzM8mnEhBL3F-7lUG8k890g_3OpaRudQECQJuMb88ZY4ABGyF/s640/Flow.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
It&#39;s time to wrap up the Intro to Power Pivot series.&amp;nbsp; This post will work through writing the final three Measures (Var to Budget, Prior Year, and Var to PY).&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Budget variance&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Let&#39;s calculate the variance between Actual and Budget by month.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: inherit;&quot;&gt;Start with the workbook created from the last exercise, Measures In-depth, or download this&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho46A6hbSWsMgxGOBA&quot; target=&quot;_blank&quot;&gt;file&lt;/a&gt;.&lt;br /&gt;
With your cursor in the Pivot Table, go to the Power Pivot menu, and select Measures, New Measure.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq6jTdLl6mTVV6lt_XBjqfnJpyx4AR8XsXWO5mz5rRdCSGUZBj_T8LPVveWtFH0vVLQkTNRd8iZE0xh55HKd0rpwULfVL_-3e3bxX0xhLIRyzXypgls5P-Y1ZYmvZ6lI7cU4DyfNKqJRRK/s1600/Data+flow.PNG&quot; style=&quot;clear: left; float: left; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;61&quot; data-original-width=&quot;644&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq6jTdLl6mTVV6lt_XBjqfnJpyx4AR8XsXWO5mz5rRdCSGUZBj_T8LPVveWtFH0vVLQkTNRd8iZE0xh55HKd0rpwULfVL_-3e3bxX0xhLIRyzXypgls5P-Y1ZYmvZ6lI7cU4DyfNKqJRRK/s1600/Data+flow.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the Measure dialog box,&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;select the Table&lt;/b&gt;&lt;/span&gt;, Actual_Data.&lt;br /&gt;
Change the Measure&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;name&amp;nbsp;&lt;/b&gt;&lt;/span&gt;to Var to Budget.&lt;br /&gt;
In the&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;formula&lt;/b&gt;&lt;/span&gt;&amp;nbsp;box, type =[Actual] - [Budget].&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHTkIC-zzk-bRs-foLUNbDIKBqDe3a6KEwByc1ltYrjAQfZTe0U_mgIUqe5bH4ZLQRgfBDycuUBtU-NhT-Ft0qED5YmKW222CYpPL5Oq1La-sO58wzyEeetc8urUE_OjGDs9uf48wkMAb/s1600/Actual+prompt.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;54&quot; data-original-width=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHTkIC-zzk-bRs-foLUNbDIKBqDe3a6KEwByc1ltYrjAQfZTe0U_mgIUqe5bH4ZLQRgfBDycuUBtU-NhT-Ft0qED5YmKW222CYpPL5Oq1La-sO58wzyEeetc8urUE_OjGDs9uf48wkMAb/s1600/Actual+prompt.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Start typing Actual, and you will get a drop down box to select from.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Measures have a 𝚺 sign next to them and are noted in brackets.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Press Tab to select.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Check&lt;/b&gt;&lt;/span&gt;&amp;nbsp;formula.&amp;nbsp; Result should be no errors.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Format&lt;/span&gt;&lt;/b&gt;&amp;nbsp;by changing the Category to Number, with 0 decimal places.&lt;br /&gt;
Ok.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPPHyRKWULILYQ_aRbxn5eF4ABH8ucA4AiPaV7RkeKvVLQblb4BBVAz0urY8ins8dQO24rDEQYoKolUaGpKTv8icmrXjJ6TDFLEq6ckmlSX6NY36xIK5LmOeOnlAnToIsZC5qePxehMfpM/s1600/Measure+dialog+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;630&quot; data-original-width=&quot;611&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPPHyRKWULILYQ_aRbxn5eF4ABH8ucA4AiPaV7RkeKvVLQblb4BBVAz0urY8ins8dQO24rDEQYoKolUaGpKTv8icmrXjJ6TDFLEq6ckmlSX6NY36xIK5LmOeOnlAnToIsZC5qePxehMfpM/s1600/Measure+dialog+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9GFWuO_RZxmjUDg5MDom_wke2SaZbP6gPjT77QaOMaXwmLvzRULmHBwGxfqTHxtxc7ii5nfE8I12eK-rv6Jx-iwnRov5N8HopstJynTid-OpuiR61dV2u3nWNzLhy4tyUFaK8_s61rOdk/s1600/Pivot+table+with+Var+Budget.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;156&quot; data-original-width=&quot;617&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9GFWuO_RZxmjUDg5MDom_wke2SaZbP6gPjT77QaOMaXwmLvzRULmHBwGxfqTHxtxc7ii5nfE8I12eK-rv6Jx-iwnRov5N8HopstJynTid-OpuiR61dV2u3nWNzLhy4tyUFaK8_s61rOdk/s1600/Pivot+table+with+Var+Budget.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Prior Year Measure using CALCULATE&lt;/span&gt;&lt;/h3&gt;
Let&#39;s create a Prior Year Measure to show the 2012 Actual values.&amp;nbsp; The formula for creating that Measure is as follows:&lt;br /&gt;
&lt;br /&gt;
= CALCULATE ( [Actual] , Date_LU[Year] = 2012 )&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;The CALCULATE function can filter a Measure.&amp;nbsp; &lt;/b&gt;&lt;/span&gt;The CALCULATE function requires first, the Measure, and then the filter.&amp;nbsp; The Measure is [Actual].&amp;nbsp; The filter is the 2012 year, which is pulling from the Year column of the Lookup Table, Date_LU.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Columns and Measures are in brackets.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgBNau7LKIilLxEKXOKCqd2V2cXUBv9XkhKW8t-51qmoWE5ONoH3Hu4WuX3WmzBqvCnFWTx7OI8OW2qHhT6gGNOqJc4R0ZUQmiQfYmCLC9Son26iXedz2CbirJAhoqMd0NUFb7EZxtPY1p/s1600/Prior+Year+Measure+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;179&quot; data-original-width=&quot;351&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgBNau7LKIilLxEKXOKCqd2V2cXUBv9XkhKW8t-51qmoWE5ONoH3Hu4WuX3WmzBqvCnFWTx7OI8OW2qHhT6gGNOqJc4R0ZUQmiQfYmCLC9Son26iXedz2CbirJAhoqMd0NUFb7EZxtPY1p/s1600/Prior+Year+Measure+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2-cm8FfqyVeDKXw585c4a7ux1HG7FBCyyWrOgL5OVD6kuMHSESwcENjUeb3Bsg5TX8Wi62Y5-f7fdrDYVFmiA-eRLpxHI3JpF7HhMbaDdH3dqTVyUs-VXka4uW9UEpB1r8RKspFierBLh/s1600/Pivot+with+PY.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;154&quot; data-original-width=&quot;796&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2-cm8FfqyVeDKXw585c4a7ux1HG7FBCyyWrOgL5OVD6kuMHSESwcENjUeb3Bsg5TX8Wi62Y5-f7fdrDYVFmiA-eRLpxHI3JpF7HhMbaDdH3dqTVyUs-VXka4uW9UEpB1r8RKspFierBLh/s1600/Pivot+with+PY.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Notice how the Prior Year column is showing the 2012 Actual numbers for both 2012 and 2013.&amp;nbsp; Using CALCULATE you&#39;ve told Excel to always show the 2012 actual value regardless of the year presented in the Pivot Table. This is referred to as filter context and occurs because &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;CALCULATE filters take precedent over Pivot Table filters&lt;/span&gt;&lt;/b&gt;.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;💥BEST PRACTICE TIP&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;CALCULATE is a very powerful function.&amp;nbsp; Always test that the results are as expected.&amp;nbsp; If others in your organization aren&#39;t using Power Pivot yet, consider adding a comment to alert the user to the CALCULATE function. 💥&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Pivot&lt;/span&gt;&lt;/h3&gt;
Let&#39;s do some quick clean-up before moving on to our final Measure.&lt;br /&gt;
&lt;br /&gt;
In the PivotTable Fields List, move the Year field from Columns to Filters.&amp;nbsp; Filter to show only 2013.&lt;br /&gt;
In the Values area, move Prior Year to the top, so it is the first column in the Pivot.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFgIVWF7hszdQgBnM6kBlDmA2bIkuQ_cPKivOJEL3UdbbpLTJJrt2vWOx2vHs_3o6SUk0UgACeRM2mrZVhvyoAxGaf8hFLKLdAFoxAgD_HZEMV2TlAA4bQvu3iblf_UrNf0evaJiKZJwqU/s1600/Pivot+cleanup.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;157&quot; data-original-width=&quot;633&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFgIVWF7hszdQgBnM6kBlDmA2bIkuQ_cPKivOJEL3UdbbpLTJJrt2vWOx2vHs_3o6SUk0UgACeRM2mrZVhvyoAxGaf8hFLKLdAFoxAgD_HZEMV2TlAA4bQvu3iblf_UrNf0evaJiKZJwqU/s1600/Pivot+cleanup.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Variance to Prior Year Measure&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
For our final Measure, let&#39;s write the variance to the prior year.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir0PqE83cp7XCnOnYcxanBGlEDcgHzH7TRryze-WNdZ3aURkQfXIUJmrMvCcDA4YbOiKfIzwT2VQfDFvm3oOFEYBHoS_ZwAIBEGgXj7Dc-fWsA4xpLp-j-ZXGnUnVQnFa8kF_GXX9JvPMk/s1600/Var+to+PY.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;196&quot; data-original-width=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir0PqE83cp7XCnOnYcxanBGlEDcgHzH7TRryze-WNdZ3aURkQfXIUJmrMvCcDA4YbOiKfIzwT2VQfDFvm3oOFEYBHoS_ZwAIBEGgXj7Dc-fWsA4xpLp-j-ZXGnUnVQnFa8kF_GXX9JvPMk/s1600/Var+to+PY.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Below is a screenshot of the final result.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv0xeYF7A_U2wNKJmhVpQTpddrLCXD-l_XjjKxIBBRJAoK8z4lwW2v_aBd99NomHQNCgQS_bzVdLiEuekaxsNe6leZJTcYcYFTF07m5-cwmX7P8O9XFfdWCRTemxXr4_SJq-4zKRmN0LgX/s1600/Final+Pivot+Table.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;474&quot; data-original-width=&quot;697&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv0xeYF7A_U2wNKJmhVpQTpddrLCXD-l_XjjKxIBBRJAoK8z4lwW2v_aBd99NomHQNCgQS_bzVdLiEuekaxsNe6leZJTcYcYFTF07m5-cwmX7P8O9XFfdWCRTemxXr4_SJq-4zKRmN0LgX/s1600/Final+Pivot+Table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
By the time you wrote your 5th and final Measure for this Intro to Power Pivot series, hopefully, you were starting to get the flow for Measures.  Keep practicing, replacing your normal SUM of Values with Measures and trying out a few CALCULATE exercises.  Pretty soon Power Pivot will be second nature. &lt;br /&gt;
&lt;br /&gt;In this lesson, you learned how to:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Write Measures which reference other Measures;&lt;/li&gt;&lt;li&gt;Write Measures to take the difference between columns in a Pivot Table; and,&lt;/li&gt;&lt;li&gt;Use the CALCULATE formula to create filtered values.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho5txvFyK2tfV6j-AQ?e=m8fb0z&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;http://knowledge.thecparevolution.com/2019/06/measures-in-depth.html&quot;&gt;Measures In-Depth&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/08/whats-killing-my-excel.html&quot;&gt;What&#39;s killing my Excel?&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/1450862542980578033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/measures-inside-measures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/1450862542980578033'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/1450862542980578033'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/measures-inside-measures.html' title='Measures inside Measures'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwJgrVozl9JnPr1J1RJOP_sFC9if-v1aP_L8IhbC2mR0OetpNTmQHKPA4-tj_gRd93od_YaPDsYyuD0v_bS-L-M3YOplWhzM8mnEhBL3F-7lUG8k890g_3OpaRudQECQJuMb88ZY4ABGyF/s72-c/Flow.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-3603662894184714697</id><published>2019-06-12T11:31:00.007-05:00</published><updated>2021-05-23T03:39:21.491-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Measures"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>Measures in-depth</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;This is the 7th post of the&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Intro to Power Pivot series&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;.&amp;nbsp; Jump to the 1st post of the series&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s1600/Data+Flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;1026&quot; height=&quot;39&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s640/Data+Flow.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Below is the Pivot Table from the last exercise.&amp;nbsp; Let&#39;s create the Measure, Actual, and polish up the Table.&amp;nbsp; Then, let&#39;s talk more in-depth about Measures.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ5t20VI3LLW1WbgMi6BjZRNfkJNDxMv8CczwIseZr1QaexV8iMkhOjjtJJO1GLD0IiCJS06tyPLidIyP6fjWqUL0h99IuQCohy62wT99bRVp7tjyweOEiiyeoIWv0yvgd-litevGfJxqx/s1600/Pivot+table+stage+2.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;128&quot; data-original-width=&quot;658&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ5t20VI3LLW1WbgMi6BjZRNfkJNDxMv8CczwIseZr1QaexV8iMkhOjjtJJO1GLD0IiCJS06tyPLidIyP6fjWqUL0h99IuQCohy62wT99bRVp7tjyweOEiiyeoIWv0yvgd-litevGfJxqx/s1600/Pivot+table+stage+2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Writing the Actual Measure&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Start with the workbook created from the last exercise, Measures, or download this&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho1eE65SubrpbNCG2A&quot; target=&quot;_blank&quot;&gt;file&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
With your cursor in the Pivot Table, go to the Power Pivot menu, and select Measures, New Measure.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYZY14t-1GAgwdZEYnX0utRucx6KTmvlqNgOBddJ_jEIlGycBAl8K8XK_R-xitgg7PM2ee3l4P_pLKUZZqIhlFuamFoujSICsy_XqVHTTGtV0GSKZ3B777OVbVvlAUupKll72tr6CltppA/s1600/New+Measure+with+Ribbon.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;1151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYZY14t-1GAgwdZEYnX0utRucx6KTmvlqNgOBddJ_jEIlGycBAl8K8XK_R-xitgg7PM2ee3l4P_pLKUZZqIhlFuamFoujSICsy_XqVHTTGtV0GSKZ3B777OVbVvlAUupKll72tr6CltppA/s16000/New+Measure+with+Ribbon.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguMyyf_kp2wtEKySEKflo0CtKOIPY98c4X0qQZUg-aMCaPeiMcg3cbKd-WNTMJEwxVh1RHBrRl6TGjA6s0Ud1ccDiZ3aeHpqk7PYC6RmZv6Kb9CCwbrpbgCh1qn0QaqtofeDjxeam3SeTr/s1600/Data+flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;61&quot; data-original-width=&quot;644&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguMyyf_kp2wtEKySEKflo0CtKOIPY98c4X0qQZUg-aMCaPeiMcg3cbKd-WNTMJEwxVh1RHBrRl6TGjA6s0Ud1ccDiZ3aeHpqk7PYC6RmZv6Kb9CCwbrpbgCh1qn0QaqtofeDjxeam3SeTr/s1600/Data+flow.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
In the Measure dialog box, &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;select the Table&lt;/b&gt;&lt;/span&gt;, Actual_Data.&lt;br /&gt;
Change the Measure &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;name&amp;nbsp;&lt;/b&gt;&lt;/span&gt;to Actual.&lt;br /&gt;
In the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;formula&lt;/b&gt;&lt;/span&gt; box, type =SUM(Actual_Data[Sales]).&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Check&lt;/b&gt;&lt;/span&gt; formula.&amp;nbsp; Result should be no errors.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Format&lt;/span&gt;&lt;/b&gt; by changing the Category to Number, with 0 decimal places.&lt;br /&gt;
Ok.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJkYy0rLHZ5EdsI2OX3tsYMkvR15rbrGde1cQLm_TEyljOu4BE1JGCzUpV82HXpmBIYZkFeSBJPzEXO5dD3kgrBJKPa84fHfY8qN9fpzRi3LV9hS__8PG_kadm3dbc5YuEyMDpXXrgVpVo/s1600/Measure.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;636&quot; data-original-width=&quot;887&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJkYy0rLHZ5EdsI2OX3tsYMkvR15rbrGde1cQLm_TEyljOu4BE1JGCzUpV82HXpmBIYZkFeSBJPzEXO5dD3kgrBJKPa84fHfY8qN9fpzRi3LV9hS__8PG_kadm3dbc5YuEyMDpXXrgVpVo/s16000/Measure.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Your Pivot Table now contains the new Measure &quot;Actual&quot;.&amp;nbsp; You can compare to the Sum of Sales values you are accustomed to seeing and confirm the Measure resulted in the same output (just formatted).&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbA2FlDUgwBPumPkdbUC15KRaLdJIGNj8lp2U2t8RqNV9MoOXeQQQ4z7sbYGN4rahoUVg_gLJWpkA2GUR1mT5ukz_O6yZs7Vgd7a5P_xbFCbAH5k8AvWinDe4ashR1o9B_HaU0vaaTwYHv/s1600/Pivot+with+Sum+of+Sales.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;151&quot; data-original-width=&quot;812&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbA2FlDUgwBPumPkdbUC15KRaLdJIGNj8lp2U2t8RqNV9MoOXeQQQ4z7sbYGN4rahoUVg_gLJWpkA2GUR1mT5ukz_O6yZs7Vgd7a5P_xbFCbAH5k8AvWinDe4ashR1o9B_HaU0vaaTwYHv/s1600/Pivot+with+Sum+of+Sales.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the Values area of the PivotTable Fields List, remove both the Sum of Sales metrics.&amp;nbsp; Below is a snapshot of the Pivot Table, which now contains the two Measures, Budget and Actual.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7pDqxgqc5B4ItTxo4QFzGYgSQ0J9rEn6Vo3VE7EhYA85nYmiKA3FLVrvCsWnon1PmK7H3AMv_FzVe8z5_8p4QSAQP1sWQMrlafa0cN8DI9evJfphohXYHHu_yji_p3CdGBwX_pRD8WT25/s1600/Pivot+table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;153&quot; data-original-width=&quot;463&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7pDqxgqc5B4ItTxo4QFzGYgSQ0J9rEn6Vo3VE7EhYA85nYmiKA3FLVrvCsWnon1PmK7H3AMv_FzVe8z5_8p4QSAQP1sWQMrlafa0cN8DI9evJfphohXYHHu_yji_p3CdGBwX_pRD8WT25/s1600/Pivot+table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Measures In-depth&lt;/span&gt;&lt;/h3&gt;With the introduction of Measures, you&#39;ve unleashed a tremendous amount of calculating power, which hasn&#39;t yet been explained.&amp;nbsp; Let&#39;s revisit each element of the Measures dialog box to start digging deeper.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguMyyf_kp2wtEKySEKflo0CtKOIPY98c4X0qQZUg-aMCaPeiMcg3cbKd-WNTMJEwxVh1RHBrRl6TGjA6s0Ud1ccDiZ3aeHpqk7PYC6RmZv6Kb9CCwbrpbgCh1qn0QaqtofeDjxeam3SeTr/s1600/Data+flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;61&quot; data-original-width=&quot;644&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguMyyf_kp2wtEKySEKflo0CtKOIPY98c4X0qQZUg-aMCaPeiMcg3cbKd-WNTMJEwxVh1RHBrRl6TGjA6s0Ud1ccDiZ3aeHpqk7PYC6RmZv6Kb9CCwbrpbgCh1qn0QaqtofeDjxeam3SeTr/s1600/Data+flow.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Table Name&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;The Table Name selected determines where a Measure is located on the Fields section of the PivotTable Fields List.&amp;nbsp; Note the Actual and Budget Measures in the image below.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqxeQfEnWaDAn5oCDJURg-xZX6XqpZh02tjxzxEeHvNoyqxRJiFmRBAvMCpYDIBsomrQ0oNuNxbgp-xAZ1y_MssOM9U7grBcYxS3d0crHLPT6jNVhrqTAPHP7Cj6byvCOvwTvhQgdxTTj1/s1600/Measures+in+Fields+section.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;501&quot; data-original-width=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqxeQfEnWaDAn5oCDJURg-xZX6XqpZh02tjxzxEeHvNoyqxRJiFmRBAvMCpYDIBsomrQ0oNuNxbgp-xAZ1y_MssOM9U7grBcYxS3d0crHLPT6jNVhrqTAPHP7Cj6byvCOvwTvhQgdxTTj1/s1600/Measures+in+Fields+section.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Some people recommend placing Measures on the queries where the related data sits, which was the structure selected for this exercise.&amp;nbsp; Selecting the queries to assign a Measure to is a matter of personal preference.&amp;nbsp; The Measure will return the same result regardless of the query assigned.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Measure Name&lt;/span&gt;&lt;/h3&gt;The Measure Name will be the default displayed name on the Pivot Table, as Budget and Actual are in our exercise.&amp;nbsp; Like a normal Pivot Table, the displayed name can be changed in Value Field Settings.&amp;nbsp; In the example below, the Measure Name would be &quot;Actual&quot; and the displayed name on the Pivot would be &quot;Actual Sales&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEQADStnvd9PnPXGMu5VOrNGnTO7LJZnj0dpy5rao41L0lL0Cm5fbTb88AskEObK32r88jQAcHbltMyxhPez4aH8ueDOYMnR7A2EgkxUIL_D0bjGg5xlhYhl118_0I3jwQIAdXfW5wNieF/s1600/Value+Field+Settings.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;125&quot; data-original-width=&quot;317&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEQADStnvd9PnPXGMu5VOrNGnTO7LJZnj0dpy5rao41L0lL0Cm5fbTb88AskEObK32r88jQAcHbltMyxhPez4aH8ueDOYMnR7A2EgkxUIL_D0bjGg5xlhYhl118_0I3jwQIAdXfW5wNieF/s1600/Value+Field+Settings.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Name your Measures something intuitive to make it clear what the Measure is calculating&lt;/b&gt;&lt;/span&gt;.&amp;nbsp; As your Data Models start to have multiple Measures, such as Actual Sales and Actual Orders, it will be helpful to easily distinguish between the two.&amp;nbsp; In our Data Model, Actual Sales and Budgeted Sales would have been more robust Measure names than Actual and Budget.&lt;br /&gt;
&lt;hr /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;💥&lt;span style=&quot;color: red;&quot;&gt;BEST PRACTICE TIP&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Create&amp;nbsp;robust Measure names&lt;/b&gt;.&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Think about possible future uses for your Data Model.&amp;nbsp; Changing a Measure name later can cause headaches.&amp;nbsp; A renamed Measure is removed from any existing Pivot Tables and requires modifying any dependent Measures.&amp;nbsp;&lt;/span&gt; 💥&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Formula&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;The formula area is the meat of the Measure and where the DAX language comes in to play.&amp;nbsp; Measures are calculations which display in the Values area of a Pivot Table.&amp;nbsp; As a calculation, &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Measures always start with an equal sign&lt;/b&gt;&lt;/span&gt;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
=SUM(Actual_Data[Sales])&lt;br /&gt;
&lt;br /&gt;
The next element is the function.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;There are more than 200 DAX functions&lt;/b&gt;&lt;/span&gt;, many which resemble functions in native Excel, but give more Power to your analytics.&lt;br /&gt;
&lt;br /&gt;
In our exercise, we used the function SUM.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;SUM adds up the amounts in a specified column&lt;/b&gt;&lt;/span&gt;.&amp;nbsp; All functions are followed by an open and closed parenthesis: =SUM().&lt;br /&gt;
&lt;br /&gt;
For the SUM function, we specified the column as Actual_Data[Sales] surrounded by open and closed parenthesis.&amp;nbsp; Since Data Models can contain multiple tables (queries) which can have the same column names (such as Sales), &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;when specifying a column, include the table name and the column name&lt;/b&gt;&lt;/span&gt;.&amp;nbsp; Our table name was Actual_Data, and the column we are summing from that table is Sales.&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Columns are referenced in brackets&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;At this point, we&#39;ve comparatively done a lot of work to mimic the &quot;Sum of Sales&quot; value normally included in a Pivot Table.&amp;nbsp; This is a simple example, designed to mimic something you are likely very familiar with to lay the foundation for more complex Measures and analysis.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
As an additional foundational exercise, I recommend reviewing the official documentation for a formula:&amp;nbsp;&lt;a href=&quot;https://docs.microsoft.com/en-us/dax/sum-function-dax&quot; target=&quot;_blank&quot;&gt;Microsoft link&lt;/a&gt;.&amp;nbsp; As you venture on your own, understanding how non-accountants reference the elements of a function enhances collaboration.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Check formula&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;After writing the formula, &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Always press &quot;Check formula&quot;&lt;/span&gt;&lt;/b&gt;.&amp;nbsp; The green checkmark and &quot;No errors in formula&quot; message confirm the formula is written correctly.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv987i8fTIiKcN5CXvy_3gBZQNWwke2EwumLldYznKBxoiFKSfKC3U6bGPKEghqtwQrNIAbqTyo_lapnCZivRtMaa-R1VCar3MGOZ5Vyp_ehYDTjB5KWT9x0kn44a8ZvBXO0Al8_uCCeia/s1600/No+errors+message.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;37&quot; data-original-width=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv987i8fTIiKcN5CXvy_3gBZQNWwke2EwumLldYznKBxoiFKSfKC3U6bGPKEghqtwQrNIAbqTyo_lapnCZivRtMaa-R1VCar3MGOZ5Vyp_ehYDTjB5KWT9x0kn44a8ZvBXO0Al8_uCCeia/s1600/No+errors+message.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
A very common error message is the following, unhelpful message.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5_Z6bap6RR7X8IerQPgfQNc63WPutAL6QRnmYiQNQIjICUrcTjsQx4Vdu5zk7RSRIK2DDDHZlYOb-QSrfLVaL4ekmUzjwQU5Z-8b6JbfBPx8uhWwe2z1B6hS2aPjwc2mHQRAE31-uf58V/s1600/Common+error+message.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;59&quot; data-original-width=&quot;728&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5_Z6bap6RR7X8IerQPgfQNc63WPutAL6QRnmYiQNQIjICUrcTjsQx4Vdu5zk7RSRIK2DDDHZlYOb-QSrfLVaL4ekmUzjwQU5Z-8b6JbfBPx8uhWwe2z1B6hS2aPjwc2mHQRAE31-uf58V/s1600/Common+error+message.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;When the above message is received, check to make sure there is a closed parenthesis at the end of the formula.&lt;br /&gt;
&lt;br /&gt;
Using Tab and the drop down menus can assist with dropping in the function and column names correctly.&amp;nbsp; Unlike Power Query, DAX is not case sensitive.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Format&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;When viewing the Measures &quot;Budget&quot; and &quot;Actual&quot; in your Pivot Table, you may have noticed they were formatted with a comma and no decimals.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7pDqxgqc5B4ItTxo4QFzGYgSQ0J9rEn6Vo3VE7EhYA85nYmiKA3FLVrvCsWnon1PmK7H3AMv_FzVe8z5_8p4QSAQP1sWQMrlafa0cN8DI9evJfphohXYHHu_yji_p3CdGBwX_pRD8WT25/s1600/Pivot+table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;153&quot; data-original-width=&quot;463&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7pDqxgqc5B4ItTxo4QFzGYgSQ0J9rEn6Vo3VE7EhYA85nYmiKA3FLVrvCsWnon1PmK7H3AMv_FzVe8z5_8p4QSAQP1sWQMrlafa0cN8DI9evJfphohXYHHu_yji_p3CdGBwX_pRD8WT25/s1600/Pivot+table.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This was based on the format settings listed in the Measure dialog box.&amp;nbsp; Each time a Measure is used, the format is set and ready to go.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigJfQPJu69R86saFMFglKAAwQi0ICUgVsmpSlIN_uhcd65OSXXSzrHZGUAtr5pi5k-BIMSpFFkuqYl9KFcKjrT22yfHZOJ9SFXtZ3i60Mj0kqAGjgIctuMy9WSHTaAdSLNLfQX5r7sS-GC/s1600/Formatting+options.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;191&quot; data-original-width=&quot;863&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigJfQPJu69R86saFMFglKAAwQi0ICUgVsmpSlIN_uhcd65OSXXSzrHZGUAtr5pi5k-BIMSpFFkuqYl9KFcKjrT22yfHZOJ9SFXtZ3i60Mj0kqAGjgIctuMy9WSHTaAdSLNLfQX5r7sS-GC/s1600/Formatting+options.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;hr /&gt;In this lesson, you:&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Practiced writing Measures;&lt;/li&gt;&lt;li&gt;Compared Measures to the traditional approach of adding Values to a Pivot;&lt;/li&gt;&lt;li&gt;Explored each component of the Measure dialog box;&lt;/li&gt;&lt;li&gt;Learned how to&amp;nbsp; write robust Measure names; and,&lt;/li&gt;&lt;li&gt;Resolved common Measure errors.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;There&#39;s a lot more to talk about regarding Measures.  &lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;Subscribe&lt;/b&gt;&lt;/span&gt;&amp;nbsp;below to be alerted when the next post is ready.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho46A6hbSWsMgxGOBA?e=GSMx3P&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/measures.html&quot;&gt;Measures&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/measures-inside-measures.html&quot;&gt;Measures inside Measures&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
💬&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Challenge exercise:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Load the Actual_Data query in to PowerBI, and write the Actual Measure, =SUM(Actual_Data[Sales]).</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/3603662894184714697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/measures-in-depth.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/3603662894184714697'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/3603662894184714697'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/measures-in-depth.html' title='Measures in-depth'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s72-c/Data+Flow.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-7976589493920459280</id><published>2019-06-07T07:00:00.005-05:00</published><updated>2021-05-23T03:29:50.936-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Measures"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>Measures</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;This is the 1st post on Measures and the 6th post of the &lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Intro to Power Pivot series&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;.&amp;nbsp; Jump to the 1st post of Power Pivot series&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s1600/Data+Flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;1026&quot; height=&quot;39&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s640/Data+Flow.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Measures allow the creation of custom formulas to harness big data using Power Pivot. Measures use a formula language called Data Analysis Expressions (DAX). Many DAX formulas are similar to native Excel, such as SUM, but they extract the value from a table, column, or subset of your data, instead of referencing cell ranges, and they can be used across your Data Model.&lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Writing a Measure&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Start with the workbook created from the last exercise, 2 Data Tables on 1 Pivot Table, or download this&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho05M6WYvTXFJ96tcg?e=U8BSK7&quot; target=&quot;_blank&quot;&gt;file&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The Pivot Table in the file currently has two values named Sum of Sales, which is not helpful.&amp;nbsp; Using Measures, let&#39;s create more meaningful descriptors, such as Budget and Actual.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFq_TruZJT6B0ukCSQtcacxB2PqBJQ-fB8LG0aNU3oo3hn86rv7ace2ZN6uPo_pk7rR2VdI7BMFr1VZg-QnLGGhYr7F2oTebH3knaHWzvZgtPcfkcsVyPkWOiFiDQxE9BcnwITglJ_LSYX/s1600/Pivot+table+stage+1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;90&quot; data-original-width=&quot;549&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFq_TruZJT6B0ukCSQtcacxB2PqBJQ-fB8LG0aNU3oo3hn86rv7ace2ZN6uPo_pk7rR2VdI7BMFr1VZg-QnLGGhYr7F2oTebH3knaHWzvZgtPcfkcsVyPkWOiFiDQxE9BcnwITglJ_LSYX/s1600/Pivot+table+stage+1.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
With your cursor in the Pivot Table, go to the Power Pivot menu, and select Measures, New Measure.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYZY14t-1GAgwdZEYnX0utRucx6KTmvlqNgOBddJ_jEIlGycBAl8K8XK_R-xitgg7PM2ee3l4P_pLKUZZqIhlFuamFoujSICsy_XqVHTTGtV0GSKZ3B777OVbVvlAUupKll72tr6CltppA/s1600/New+Measure+with+Ribbon.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;197&quot; data-original-width=&quot;1151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYZY14t-1GAgwdZEYnX0utRucx6KTmvlqNgOBddJ_jEIlGycBAl8K8XK_R-xitgg7PM2ee3l4P_pLKUZZqIhlFuamFoujSICsy_XqVHTTGtV0GSKZ3B777OVbVvlAUupKll72tr6CltppA/s16000/New+Measure+with+Ribbon.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
In the Measure dialog box, select Budget_Data as the Table name.&lt;br /&gt;
Change the Measure name to Budget.&lt;br /&gt;
In the formula box, type =SUM(Budget_Data[Sales]).&lt;br /&gt;
Change the Category to Number, with 0 decimal places.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3HL5q5Ow32aOlPsvaKsBjFpjbPWHWFpVKDFWp7Up-zcE6wRFWYPx_NWhe00YFnhn0MwWoHurHJ8rSpNxsqVA5xufuLkUABRZ1eVSPpiJ493FD5Z16Bt3CJWAReLXcItcpohj78OSUVM3S/s1600/Budget+Measure+dialog+box.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;632&quot; data-original-width=&quot;879&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3HL5q5Ow32aOlPsvaKsBjFpjbPWHWFpVKDFWp7Up-zcE6wRFWYPx_NWhe00YFnhn0MwWoHurHJ8rSpNxsqVA5xufuLkUABRZ1eVSPpiJ493FD5Z16Bt3CJWAReLXcItcpohj78OSUVM3S/s16000/Budget+Measure+dialog+box.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The Pivot Table now contains the new Measure &quot;Budget&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNnpmry2Wc8AcDV1DoBvIwJur6YfsNSHdRO8v-zHKDKWDPXWTp1r2GhyphenhyphendPZKCORP41qCE8NWLU8k80h_IsIz3syUGYC1PgGJXZOw4Yo-ygcnQEpbEw0wedplQScFMJ5W2IXBkR_t6oy2Oj/s1600/Pivot+table+stage+2.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;128&quot; data-original-width=&quot;658&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNnpmry2Wc8AcDV1DoBvIwJur6YfsNSHdRO8v-zHKDKWDPXWTp1r2GhyphenhyphendPZKCORP41qCE8NWLU8k80h_IsIz3syUGYC1PgGJXZOw4Yo-ygcnQEpbEw0wedplQScFMJ5W2IXBkR_t6oy2Oj/s1600/Pivot+table+stage+2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Learning Curves&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;Not everyone got that result on the first try.&amp;nbsp; Let&#39;s talk about a few things that could have thrown you a curve, and how to fix them.&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;Measure not on Pivot Table&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;If the Budget Measure is not on the Pivot Table at all, it&#39;s because the cursor was not in the Pivot Table when New Measure was selected from the Power Pivot ribbon.&amp;nbsp; Go to the Pivot Table Fields List, and locate the fx Budget checkbox.&amp;nbsp; Check the box, and the new Measure is added to the Pivot.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEpuQ4OSN2gtDP1R6fy8KE8bzAuLPsbVBy1ViGqEXMNGuh4INEprD24LFRw4bmmVvRmFgMHhIBkpn65SpTWl8auX6l31Yezy8xK-DphPgx31WtcekavpVe2pldsM5oDNJ_Cub69TRTmze9/s1600/Pivot+tables+field+list.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;498&quot; data-original-width=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEpuQ4OSN2gtDP1R6fy8KE8bzAuLPsbVBy1ViGqEXMNGuh4INEprD24LFRw4bmmVvRmFgMHhIBkpn65SpTWl8auX6l31Yezy8xK-DphPgx31WtcekavpVe2pldsM5oDNJ_Cub69TRTmze9/s1600/Pivot+tables+field+list.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Measure in different section of Fields List&lt;/i&gt;&lt;/div&gt;&lt;div&gt;If the new Measure is not listed under Budget_Data, in the Fields List search box, type Budget.&amp;nbsp; Check the box to add the Measure to the Pivot.&amp;nbsp; This occurs when the Table Name used in the Measure was something other than Budget_Data.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Measure Name or Formatting is incorrect&lt;/i&gt;&lt;/div&gt;&lt;div&gt;If the Measure is on the Pivot Table, but it&#39;s not named Budget or formatted with a comma and no decimals, then the Measure needs to be modified by reopening the Measure dialog box.&amp;nbsp; On the Power Pivot menu, select Measures, Manage Measures and modify to match the image above.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-K7zYPgiCQ5LThAuEFpML4xKtvb7apSJ6igJUeO5wG5nWvT8OKPhLO0tyZPLejuMtFlHHM4oiw4kMgHosPWIxPtDdrkVmmvasFAdyKBru7UfestyAa6Cv1Dkvuk2ThyEesTxvyvKMJoyW/s1600/Manage+measures+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;185&quot; data-original-width=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-K7zYPgiCQ5LThAuEFpML4xKtvb7apSJ6igJUeO5wG5nWvT8OKPhLO0tyZPLejuMtFlHHM4oiw4kMgHosPWIxPtDdrkVmmvasFAdyKBru7UfestyAa6Cv1Dkvuk2ThyEesTxvyvKMJoyW/s1600/Manage+measures+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;In this lesson, you learned:&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;What a Measure is;&lt;/li&gt;&lt;li&gt;How to write a Measure; and,&lt;/li&gt;&lt;li&gt;Troubleshooting for common Measure problems.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho1eE65SubrpbNCG2A&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-data-tables-on-1-pivot-table.html&quot;&gt;2 Data Tables on 1 Pivot Table&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/measures-in-depth.html&quot;&gt;Measures In-depth&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/7976589493920459280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/measures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/7976589493920459280'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/7976589493920459280'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/measures.html' title='Measures'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s72-c/Data+Flow.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-4429168446854596395</id><published>2019-06-06T07:00:00.007-05:00</published><updated>2021-10-16T22:35:08.035-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>2 Data Tables on 1 Pivot Table</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;This is the 5th post of the &lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Intro to Power Pivot series&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;.&amp;nbsp; Jump to the 1st post of the series&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s1600/Data+Flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;1026&quot; height=&quot;39&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s640/Data+Flow.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
This lesson walks through the steps to load the 2&lt;sup&gt;nd&lt;/sup&gt;&amp;nbsp;Data Table (Actual), build a relationship to the Lookup Table, and add actual sales to the budgeted sales Pivot Table.&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Load the Actual Data Table&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Start with the workbook created from the last exercise, Building Relationships, or download this &lt;/span&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho0GkxrQDeC66_mdsQ?e=yugmhq&quot; target=&quot;_blank&quot;&gt;file&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Load the Actual data to the exercise workbook by performing the following steps:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Download the Actual file by selecting the Download icon below.&lt;/li&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;200&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%2199893&amp;amp;authkey=%21AFNOuLYUC8vEjlI&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;ActiveCell=&#39;in&#39;!A1&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;200&quot;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;/ul&gt;
&lt;ul&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;↑&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;li&gt;In the exercise workbook, go to the Data tab, Get Data, From File, From Workbook.&lt;/li&gt;
&lt;li&gt;Browse to select the downloaded Actual file and Import.&lt;/li&gt;
&lt;li&gt;On the Navigator, select the Table, then Transform Data (or Edit).&lt;/li&gt;
&lt;li&gt;Rename the Query, Actual_Data.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Establish a common field&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
The Actual file lists actual sales by day in the format MM/DD/YYYY,&amp;nbsp; The Date Lookup Table is rolled up to the monthly level.&amp;nbsp; Therefore, we need to create a column in the Actual query that we can build a relationship with.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Choose the Date of Sale column, and then on the Add Column tab, select Date, Month, Start of Month.&lt;br /&gt;
&lt;br /&gt;
The query is now loaded and transformed.&amp;nbsp; Go to the Close &amp;amp; Load drop down menu, Close &amp;amp; Load To, Only Create Connection, Add this data to the Data Model and select Ok.&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Build a relationship&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
In the Power Pivot menu, select Manage to open Power Pivot.&amp;nbsp; On the Home tab, select Diagram View.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
Rearrange the Actual_Data query so the&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Data Table looks up to the Lookup Table&lt;/b&gt;&lt;/span&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-2RomLRyOOnnIIl0yM3vYsv06baiaaexbMfdKLYWSuisXkH1KwRPTekg3O72kDcQ_Imrio3Igi2fY9gu8Bmh98Qnpzzte31hZ8J7mb2IKvSpzLlsIy7baHdwVefhXOEhcbIRI4Y50J8KR/s1600/Build+relationship.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;452&quot; data-original-width=&quot;664&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-2RomLRyOOnnIIl0yM3vYsv06baiaaexbMfdKLYWSuisXkH1KwRPTekg3O72kDcQ_Imrio3Igi2fY9gu8Bmh98Qnpzzte31hZ8J7mb2IKvSpzLlsIy7baHdwVefhXOEhcbIRI4Y50J8KR/s1600/Build+relationship.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
On the Actual_Data box, select the Start of Month and drag up to the Start of Month on the Date_LU.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUtzLqyVnfTKuwTOM_W_n-GrBKOoC91ckzJse5ykoWhQOxIm2FhGnv_NJfftzGCiSPKNpPaXFEy_3XwlTQnJwwn8m6GFm61ZaoxeDXkN9bmJX6uijlH6D5O-94k5ZGbUJZ8YTNVoXg0rFN/s1600/Connect+tables.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;440&quot; data-original-width=&quot;648&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUtzLqyVnfTKuwTOM_W_n-GrBKOoC91ckzJse5ykoWhQOxIm2FhGnv_NJfftzGCiSPKNpPaXFEy_3XwlTQnJwwn8m6GFm61ZaoxeDXkN9bmJX6uijlH6D5O-94k5ZGbUJZ8YTNVoXg0rFN/s1600/Connect+tables.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
The connector should indicate a 1 next to the Date_LU Table, since this Table holds unique values.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9oet-sZ8-v4aMvpQRjcevzgKgWTVMzdhzbYZIp96kZiF1C1jN3I1nOCSCgBRXvGfyftn1eHP4hyphenhyphenFWqUOn6R3BS5X-V-8vFvTY-8iB5uauZJsxjZNVigWCNIpF_C7lvE5-RFJGFGOFEuTo/s1600/Connector+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;429&quot; data-original-width=&quot;373&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9oet-sZ8-v4aMvpQRjcevzgKgWTVMzdhzbYZIp96kZiF1C1jN3I1nOCSCgBRXvGfyftn1eHP4hyphenhyphenFWqUOn6R3BS5X-V-8vFvTY-8iB5uauZJsxjZNVigWCNIpF_C7lvE5-RFJGFGOFEuTo/s1600/Connector+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Close Power Pivot.&lt;br /&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;💥BEST PRACTICE TIP&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Always connect the Data Table to the Lookup Table.&amp;nbsp; Do not connect Data Tables to each other.💥&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Pivot Budget and Actual on 1 Pivot Table&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
In the Pivot Table Field List, there are now 3 queries to choose from including Actual_Data.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8CAszy9zZOaiFTp4mLsUKmo0LonvEi3z4yIjBqjpsxZ5IVatFD_zSWZ2xYrtsWhH75vbJw26Hjs2vECxDgzpTHbXzQdt7rH5m7b7jTyg-LUQViQ36ZIy3coO3MtKD7kAwFHv-Rtd7hH_V/s1600/Pivot+table+fields.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;402&quot; data-original-width=&quot;324&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8CAszy9zZOaiFTp4mLsUKmo0LonvEi3z4yIjBqjpsxZ5IVatFD_zSWZ2xYrtsWhH75vbJw26Hjs2vECxDgzpTHbXzQdt7rH5m7b7jTyg-LUQViQ36ZIy3coO3MtKD7kAwFHv-Rtd7hH_V/s1600/Pivot+table+fields.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Add Sales from the Actual_Data query to the Pivot Table Value section.&amp;nbsp; Remove from Rows the Period field from the Budget_Data query.&amp;nbsp; Also, from the Date_LU remove from Rows the Start of Month and Month, and add to Columns the Year.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh52d39cr363Mms5Km8RfxAWUZ0iYFjv3XXQDDten5Hv_-JIqnHPoiHjWxxZAncLkk4L0eOlr5S7-mET689_0k-sKnZcTmh1cRWykHFGwgdGvk-Inqum_lFqGpUq5AGbZR9Bmbblac2iJSw/s1600/Fields+of+pivot+table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;359&quot; data-original-width=&quot;349&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh52d39cr363Mms5Km8RfxAWUZ0iYFjv3XXQDDten5Hv_-JIqnHPoiHjWxxZAncLkk4L0eOlr5S7-mET689_0k-sKnZcTmh1cRWykHFGwgdGvk-Inqum_lFqGpUq5AGbZR9Bmbblac2iJSw/s1600/Fields+of+pivot+table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
With the cursor in the Month Name column of the Pivot Table, right click and Sort by Ascending.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnkmSEy8YGuWtRvVi1SiGIl_JmbBvYUQKmkACLW9a7_eKgBlbP10Cm2_5u7P3YFnp98p3B5YSsHdsCYO_BDnk1kPvJtWBvahVieKhdYMwA-cGkIO85AZFAh80oTE9OR2rG3XCZ6vx9Xptp/s1600/Pivot+table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;444&quot; data-original-width=&quot;563&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnkmSEy8YGuWtRvVi1SiGIl_JmbBvYUQKmkACLW9a7_eKgBlbP10Cm2_5u7P3YFnp98p3B5YSsHdsCYO_BDnk1kPvJtWBvahVieKhdYMwA-cGkIO85AZFAh80oTE9OR2rG3XCZ6vx9Xptp/s1600/Pivot+table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
It&#39;s not polished yet, but the goal has been achieved.&amp;nbsp; The Pivot Table reflects 2 Data Tables and two different sales figures: budget and actual.&lt;br /&gt;
&lt;hr /&gt;
In this lesson, you learned how to:&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Handle relationships when there are two Data Tables; and&amp;nbsp;&lt;/li&gt;&lt;li&gt;Pivot 3 data sets on 1 Pivot Table.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;
&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho05M6WYvTXFJ96tcg&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;http://knowledge.thecparevolution.com/2019/06/building-relationships.html&quot;&gt;Building relationships&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/measures.html&quot;&gt;Measures&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/4429168446854596395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/2-data-tables-on-1-pivot-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4429168446854596395'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4429168446854596395'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/2-data-tables-on-1-pivot-table.html' title='2 Data Tables on 1 Pivot Table'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s72-c/Data+Flow.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-7603704975164201933</id><published>2019-06-05T07:00:00.009-05:00</published><updated>2021-05-23T03:22:46.036-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>Building relationships</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;This is the 4th post of the &lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Intro to Power Pivot series&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;.&amp;nbsp; Jump to the 1st post of the series&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s1600/Data+Flow.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;1026&quot; height=&quot;39&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s640/Data+Flow.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;In this lesson, you will load the 1st Data Table, build the 1st relationship, and create a Pivot Table using both the Lookup and the 1st Data Table.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d; font-family: inherit;&quot;&gt;Load the Budget Data&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Open the workbook you created in the last exercise, Power Pivot Date Table, or download the file&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhox2YD5UQLFNZ01Z1A&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Load the budget data to the workbook by performing the following steps:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Download the budget file below.&lt;/li&gt;
&lt;li&gt;In the exercise workbook, go to the Data tab, Get Data, From File, From Workbook.&lt;/li&gt;
&lt;li&gt;Browse to select the downloaded budget file and Import.&lt;/li&gt;
&lt;li&gt;On the Navigator, select the Budget Table, then Transform Data (or Edit).&lt;/li&gt;
&lt;li&gt;Rename the Query, Budget_Data.&lt;/li&gt;
&lt;li&gt;Close &amp;amp; Load drop down menu, Close &amp;amp; Load To, Only Create Connection, Add this data to the Data Model.&amp;nbsp; Ok.&lt;/li&gt;
&lt;/ul&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;250&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%2199891&amp;amp;authkey=%21AHfF-DjDRgo3l-Q&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;ActiveCell=&#39;Sheet1&#39;!A1&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;200&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;↑&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;div&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;First Look at Power Pivot&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;We&#39;ve loaded two files to our Data Model.&amp;nbsp; It&#39;s time to move from Power Query to Power Pivot.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqj7Rqz2FIrBySTwWRw2kHNGgZmmkcrzW-lA3A9k9IZ0P4K_w2jefprY1NSbUl9ThlfCDKN47ocKDyBRHHJGxP79Dy5vAkK29HCKBkDmc9l-jI-lrabZdz924uUX8ErQXp7glc72q0fYAH/s1600/Manage+Data+Model.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;155&quot; data-original-width=&quot;95&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqj7Rqz2FIrBySTwWRw2kHNGgZmmkcrzW-lA3A9k9IZ0P4K_w2jefprY1NSbUl9ThlfCDKN47ocKDyBRHHJGxP79Dy5vAkK29HCKBkDmc9l-jI-lrabZdz924uUX8ErQXp7glc72q0fYAH/s1600/Manage+Data+Model.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;In the Power Pivot menu, select Manage.&amp;nbsp; This opens Power Pivot.&amp;nbsp; Alternatively, you can also access Power Pivot by selecting the smaller version of the Manage icon, in the Data Tools section of the Data menu.&lt;br /&gt;
&lt;br /&gt;
When Power Pivot opens, the initial view is called the Data view.&amp;nbsp; In this view, you will see on separate tabs each of the queries loaded to the Data Model.&lt;br /&gt;
&lt;br /&gt;
Think of this as a read only view, as the original queries can only be modified at the source or in Power Query.&lt;br /&gt;
&lt;br /&gt;
On the Home tab, select Diagram View.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsr5DSJh0ymmiK1p5FHol2y0onE_RCtzgKoIxCxq58OV2pluFZmU52OtV5m2_bni8YBSZu8IlXD8L7-a9BmAx-dekbJzAmzlicDQ4cAw09QTk2vif3jJWzngL9Son3ZISzOmVh3ENIJSxF/s1600/Diagram+view+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;132&quot; data-original-width=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsr5DSJh0ymmiK1p5FHol2y0onE_RCtzgKoIxCxq58OV2pluFZmU52OtV5m2_bni8YBSZu8IlXD8L7-a9BmAx-dekbJzAmzlicDQ4cAw09QTk2vif3jJWzngL9Son3ZISzOmVh3ENIJSxF/s1600/Diagram+view+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The diagram view shows the column names of each query and is a place to visualize how your queries relate to each other.&lt;br /&gt;
&lt;br /&gt;
First, let&#39;s rearrange the queries so the&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Data Table looks up to the Lookup Table&lt;/b&gt;&lt;/span&gt;.&amp;nbsp; Rearrange by dragging the Budget_Data box under the Date_LU box.&amp;nbsp; I call this the Golden rule of Power Pivot; it&#39;s more commonly referred to as the Collie method, for the creator, Rob Collie of PowerPivotPro.com.&amp;nbsp; &amp;nbsp;Visualize how in the image below the&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Data Table looks up to the Lookup Table&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtW5pYCR8va44ZJs5vsW2dItlYPou5qLvS36vhyZ4jR-v84FVU8oCGRjGOriBQMt_kBOg4vpmrcCmydkKHEURAbVemQE5Lw1foYoqgAIjwusK1jeHrAiuEIws3TT58YoFMy1kMTHdz307g/s1600/Rearrange+queries.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;516&quot; data-original-width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtW5pYCR8va44ZJs5vsW2dItlYPou5qLvS36vhyZ4jR-v84FVU8oCGRjGOriBQMt_kBOg4vpmrcCmydkKHEURAbVemQE5Lw1foYoqgAIjwusK1jeHrAiuEIws3TT58YoFMy1kMTHdz307g/s1600/Rearrange+queries.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;hr /&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;💥BEST PRACTICE TIP&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Layout your Data Model, so the Data Tables look up to the Lookup Tables.💥&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Build a relationship&lt;/span&gt;&lt;/h3&gt;Next, we are going to connect the queries together based on a common field.&lt;br /&gt;
&lt;br /&gt;
For this Data Model, the Date_LU query column MMYYY equates to the Period column in the Budget_Data query.&lt;br /&gt;
&lt;br /&gt;
To connect the two columns, select Period, and while holding down the left mouse button, drag your cursor to MMYYYY.&amp;nbsp; A line illustrates the connection being built between Period and MMYYYY.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgVw5thzywbsH4K3ZgOuo2qZRt0ZNH2xqlhu2ppdUDnSo4iuoGafR0vVozNwTSgpWxC1ekzNxOqW3jAcHoieSQSQtgkKQm5o7bMGBoH1IF7Sixcwx3R99niwrsPtdNwkr8Q0XZn0ofuaJo/s1600/Connecting+the+queries.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;434&quot; data-original-width=&quot;325&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgVw5thzywbsH4K3ZgOuo2qZRt0ZNH2xqlhu2ppdUDnSo4iuoGafR0vVozNwTSgpWxC1ekzNxOqW3jAcHoieSQSQtgkKQm5o7bMGBoH1IF7Sixcwx3R99niwrsPtdNwkr8Q0XZn0ofuaJo/s1600/Connecting+the+queries.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
After the two queries are connected, a connector is displayed.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB9PtQVX3NikvSY1QyMCnd0noizndiFB1Cv0ymL8h5vbFFGPqgfK7sbc_kjA064R53VTCisme9vDsgUsF_iGgKJPZQvMfmENDpyy-cMqY7BM4RXKJziEcJkNmnSJTx4dbZLnnMrh0gwy3-/s1600/Connection+between+queries.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;431&quot; data-original-width=&quot;355&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB9PtQVX3NikvSY1QyMCnd0noizndiFB1Cv0ymL8h5vbFFGPqgfK7sbc_kjA064R53VTCisme9vDsgUsF_iGgKJPZQvMfmENDpyy-cMqY7BM4RXKJziEcJkNmnSJTx4dbZLnnMrh0gwy3-/s1600/Connection+between+queries.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt; &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;The connector tells us several important things:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Placing your cursor on the connector highlights which columns the connections were made on.&lt;/li&gt;
&lt;li&gt;The downward direction of the arrow on the connector tells us the Lookup Table is flowing the value down to the Data Table.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The &quot;1&quot; indicates that the values in the MMYYYY column are unique (no two values are the same).&amp;nbsp; The * indicates that the values in the Period column can be any value.&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;This is referred to as a &quot;One-to-Many Relationship&quot; and is a key concept in building Data Models with Power Pivot.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;i&gt;Building a relationship vs. using VLOOKUP&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
In a traditional VLOOKUP, you would lookup the data from the Lookup Table and add it to the Data Table.&amp;nbsp; Using Power Pivot, you tell Excel where to look for the value but don&#39;t copy the value to the Data Table.&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;This saves enormous resources and dramatically decreases file size and improves calculation speeds.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;A Pivot Table with 2 tables&lt;/span&gt;&lt;/h3&gt;Now that the relationship is built, close Power Pivot.&lt;br /&gt;
&lt;br /&gt;
Insert a Pivot Table, selecting &quot;Use this workbook&#39;s Data Model&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl5CdQZ7qiACDWjZR4D0bhUz2R5DvQGgTnP5qKu9WRKE46kwoupqctYKWdJZ1oAOBgxPry91w7e2ZkR_vO_FoVuQsBbH16pl36GO2DoBC5L0KT5cd-RFg-DoZAeKBvxhHqdmuZyvHfL8fM/s1600/Create+pivot+table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;614&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl5CdQZ7qiACDWjZR4D0bhUz2R5DvQGgTnP5qKu9WRKE46kwoupqctYKWdJZ1oAOBgxPry91w7e2ZkR_vO_FoVuQsBbH16pl36GO2DoBC5L0KT5cd-RFg-DoZAeKBvxhHqdmuZyvHfL8fM/s1600/Create+pivot+table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Great news!&amp;nbsp; Power Pivot uses the same Pivot Table that you already know and love.&amp;nbsp; Everything looks the same as it did before, with one exception.&amp;nbsp; In the Pivot Table Field List, there are now multiple data sets available to choose from.&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;I get shivers thinking about how this simple change dramatically transformed my work and improved my efficiency.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrp0wgyIHparmaPGeSSrYzEcQYcNQI7bpoFfp-_HmvOrIsx16rBUSugEbl371wE973DLiyYfFC_o0tfU5h_NAW48wnf6530cgibNFwuQPsRV0rHSOlXJQNhEY2hjEZ4MBTD1pqB5vUInYn/s1600/Multiple+data+sets+in+field+list.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;336&quot; data-original-width=&quot;519&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrp0wgyIHparmaPGeSSrYzEcQYcNQI7bpoFfp-_HmvOrIsx16rBUSugEbl371wE973DLiyYfFC_o0tfU5h_NAW48wnf6530cgibNFwuQPsRV0rHSOlXJQNhEY2hjEZ4MBTD1pqB5vUInYn/s1600/Multiple+data+sets+in+field+list.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;From the Budget_Data query, place Period in Rows and Sales in the Values area of the Pivot.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCa10y8jHYa5mr4IcTUBvmKz2CL8-RANizhVZ6UzuBF9AE6AYVLQtJTLOHjQF4eAm2IrCMeQ9-dKhbwuQjENe_NCeUvRxcwsmf6iHO79bFS_NouncIt9EuU8QVseJmQyB56iYAXecTbPsp/s1600/Pivot+table+fields.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;90&quot; data-original-width=&quot;507&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCa10y8jHYa5mr4IcTUBvmKz2CL8-RANizhVZ6UzuBF9AE6AYVLQtJTLOHjQF4eAm2IrCMeQ9-dKhbwuQjENe_NCeUvRxcwsmf6iHO79bFS_NouncIt9EuU8QVseJmQyB56iYAXecTbPsp/s1600/Pivot+table+fields.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Previously, this Pivot Table yields all the data we would have been able to extract from the budget file. If we wanted to add, Year, Month, and Month Name we would need to add 3 new columns to the budget file (and repeat each time we received a new file from the budget team).&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilTNIAHFOjee0azyTOMmjAVukQi0IFi_9ZBCEA3yzl0ffJFG-42IyKJCsrSBVgqh-iD84FKWKQMbSyjv03g_L5673QzUnCDbj1e7oMecNSvrTP-4oDWTQaP-BepJb1-4R_29ILh1x2E2hx/s1600/Old+pivot+table+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilTNIAHFOjee0azyTOMmjAVukQi0IFi_9ZBCEA3yzl0ffJFG-42IyKJCsrSBVgqh-iD84FKWKQMbSyjv03g_L5673QzUnCDbj1e7oMecNSvrTP-4oDWTQaP-BepJb1-4R_29ILh1x2E2hx/s1600/Old+pivot+table+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Let&#39;s look at how the world has changed.&amp;nbsp; In the Pivot Table Fields List, add Start of Month, Month and Month Name to rows.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilOnV6PvqqccnRq1fY5Yzt-El385AZ9n2PfpusXes6lJJcvYcIBVMcuHAWHN2FpW_eJh2njj9b_LYsknvYxienmu_yN9EXheqyf5ci-AuHgyZ2g5wodvbPPd-iwWFIGE3e-zo4dPlXHD9c/s1600/Pivot+table+fields+date.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;203&quot; data-original-width=&quot;500&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilOnV6PvqqccnRq1fY5Yzt-El385AZ9n2PfpusXes6lJJcvYcIBVMcuHAWHN2FpW_eJh2njj9b_LYsknvYxienmu_yN9EXheqyf5ci-AuHgyZ2g5wodvbPPd-iwWFIGE3e-zo4dPlXHD9c/s1600/Pivot+table+fields+date.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Rx4Jl4Qhzv57m8gDpn3DY11doMCjtZtTw9c0v4hCCgtFEdb0DxeD4xQz4ICDIYBsqYq6dzI83WaVU6_20IYgEwKLBFsq3jIxInOE0lO6Jihl218Z1BdlsvfeodZo-6pQ8I6wqYRcD3TQ/s1600/Pivot+table+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;375&quot; data-original-width=&quot;651&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Rx4Jl4Qhzv57m8gDpn3DY11doMCjtZtTw9c0v4hCCgtFEdb0DxeD4xQz4ICDIYBsqYq6dzI83WaVU6_20IYgEwKLBFsq3jIxInOE0lO6Jihl218Z1BdlsvfeodZo-6pQ8I6wqYRcD3TQ/s1600/Pivot+table+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;If you do nothing else in Power Pivot, when your Lookup Table has unique values, load your files and build the relationships to remove VLOOKUPs.&amp;nbsp; You will find immediate improvement in the performance of your files.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;The Power Pivot Data Model compresses data 7 to 10 times smaller than the same data in native Excel.&amp;nbsp;&lt;/b&gt; Native Excel uses the in-memory analytics engine to store data in memory (hence why large files with complex formulas or multiple Pivots receive resource error messages).&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;In this lesson, you learned how to:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Navigate in Power Pivot;&lt;/li&gt;&lt;li&gt;Build relationships using Power Pivot;&lt;/li&gt;&lt;li&gt;Interpret the Connector in Power Pivot;&lt;/li&gt;&lt;li&gt;Create 1 Pivot Table using 2 data sets; and,&lt;/li&gt;&lt;li&gt;The value of performing calculations, such as VLOOKUP, in Power Pivot instead of native Excel.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPho0GADbmw0pjT2Y_Gg&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/power-pivot-date-table.html&quot;&gt;Power Pivot Date Table&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-data-tables-on-1-pivot-table.html&quot;&gt;2 Data Tables on 1 Pivot Table&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
💬&amp;nbsp; Questions or challenges can always be addressed in the comment section below.</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/7603704975164201933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/building-relationships.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/7603704975164201933'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/7603704975164201933'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/building-relationships.html' title='Building relationships'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC8vRnoND-JLQgm_wQzC8Ps-ceSuNSmMdOWNeaP_nYH7IJEuj85elVuhSSAEKjE8jih-r9yMWgDecJ60T_QPsh38str91P6B3AXfHpvkWrWKCeyxSfZA6eLeRXhGaXGJXs-esyexZx8Hr/s72-c/Data+Flow.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-8693171274841647624</id><published>2019-06-04T07:00:00.007-05:00</published><updated>2021-10-16T22:33:53.255-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><title type='text'>Power Pivot: Date Table</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;This is the 3rd post of the&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;Intro to Power Pivot series.&lt;/span&gt;&amp;nbsp; Jump to the 1st post of the series&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot;&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;br /&gt;
A date seems to rarely be written the same way when derived from different teams or source systems.&amp;nbsp; In our Intro to Power Pivot series, the budget file uses a MMYYY format, and the actual file uses a MM/DD/YYYY format.&lt;br /&gt;
&lt;br /&gt;
Creating a standard Date Table is a helpful tool for using Power Pivot.&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;The file created in this lesson can be used for this series and as a calendar Lookup Table on your future Power Pivot models.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIa1ciohlVOD7YgI9hjgoWHQxh6s0h4LyrQRqX-vxyuJrliP0YmW3iZWmeQGDw4rMn7riO15UEI-ANxUNAwzueFCuW-qaXoncXAYTDbNz3QtaPzVFgxyS9Dn_0tBUI4NGzQaAjR3ujtrRT/s1600/Data+Flow.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;1026&quot; height=&quot;40&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIa1ciohlVOD7YgI9hjgoWHQxh6s0h4LyrQRqX-vxyuJrliP0YmW3iZWmeQGDw4rMn7riO15UEI-ANxUNAwzueFCuW-qaXoncXAYTDbNz3QtaPzVFgxyS9Dn_0tBUI4NGzQaAjR3ujtrRT/w640-h40/Data+Flow.PNG&quot; title=&quot;5 Power Pivot steps&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Load Lookup Table&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
Make a Date Table that lists each month for 2 years using both the MMYYYY and MM/DD/YYYY format and starting with 1/1/2012; or download the file below.&amp;nbsp; Format as Table.&amp;nbsp; Save and close the workbook.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;200&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%2199894&amp;amp;authkey=%21AEYZyzpticLrfpk&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;200&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ⬆&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHKrgTjEoH2Le1FMNGeJV4LTO_TrAFXCvT-X6EcmJ4QuKZagdrOmVZWIdxFt5cja4xKsi5hvVujkVZTQMt6XhsUD4Cj99wvpxVSY3W79KJ2jQLwPPhlxPZ6c_S8IQrb3HcQOnn6EcJaz8m/s1600/Data+Flow+Get+Data.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;58&quot; data-original-width=&quot;813&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHKrgTjEoH2Le1FMNGeJV4LTO_TrAFXCvT-X6EcmJ4QuKZagdrOmVZWIdxFt5cja4xKsi5hvVujkVZTQMt6XhsUD4Cj99wvpxVSY3W79KJ2jQLwPPhlxPZ6c_S8IQrb3HcQOnn6EcJaz8m/s16000/Data+Flow+Get+Data.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
In Excel, start a &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;new workbook&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;
Load the Date Table to Power Query, by going to Data, &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Get Data&lt;/span&gt;&lt;/b&gt;, From File, From Workbook.&lt;br /&gt;
Select the location where you saved the Budget file downloaded above. &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Import&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrjOcQY9wAqadkIcLkMmwnx4vY_UrbROp4ZH6ORJA8ob0w86h-xDhetKo-LfkNQudl4HGNE8B34oir7crySWRllKTRXmbHXGQwQgNb5Dxggsc_BvcBu7bOjMcdBkhT64sHYDjX3UtYfTvd/s1600/Get+data+Worksheet.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;221&quot; data-original-width=&quot;635&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrjOcQY9wAqadkIcLkMmwnx4vY_UrbROp4ZH6ORJA8ob0w86h-xDhetKo-LfkNQudl4HGNE8B34oir7crySWRllKTRXmbHXGQwQgNb5Dxggsc_BvcBu7bOjMcdBkhT64sHYDjX3UtYfTvd/s320/Get+data+Worksheet.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
On the Navigator tab, &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;select the table&lt;/span&gt;&lt;/b&gt; and then &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Transform&lt;/b&gt;&lt;/span&gt; Data (or Edit) to open the Power Query Editor &lt;br /&gt;
&lt;br /&gt;
[Yep, Power Query still plays a pivotal role in Power Pivot.  If you missed those lessons, start &lt;a href=&quot;https://knowledge.thecparevolution.com/2018/11/the-game-changer.html&quot;&gt;here&lt;/a&gt;]&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgegaQg0GraVkydfKATMSkxG5LH2N2HrbB-7HXcRA9mAslZxEVTETFBAjxVfAuL-R2aA1C5vKD3e2Yik6oCDsIhZtHVlfhDequnncLQ7D2TxmqVr_FalsP4zls4FWgxdkXd0camciViiQzC/s1600/Navigator+crop.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;332&quot; data-original-width=&quot;766&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgegaQg0GraVkydfKATMSkxG5LH2N2HrbB-7HXcRA9mAslZxEVTETFBAjxVfAuL-R2aA1C5vKD3e2Yik6oCDsIhZtHVlfhDequnncLQ7D2TxmqVr_FalsP4zls4FWgxdkXd0camciViiQzC/s1600/Navigator+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6nSeGwMF5rwQEsPrkrNGdkSS_sW8Ul75l_Wd79bDR5B3V6-yOtLK6gViLLSYNQXUoUV4CTq-Jm-bhhgAhmpYrz29v-TLciLU5HaNiCBm1ek52RKr1Jn6KYpdyDyelS8YugmxgjZun1Oz0/s1600/Transform+data.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;77&quot; data-original-width=&quot;418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6nSeGwMF5rwQEsPrkrNGdkSS_sW8Ul75l_Wd79bDR5B3V6-yOtLK6gViLLSYNQXUoUV4CTq-Jm-bhhgAhmpYrz29v-TLciLU5HaNiCBm1ek52RKr1Jn6KYpdyDyelS8YugmxgjZun1Oz0/s1600/Transform+data.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5NaVX-zy7w2j01Fm9Uci6WihbQwjSgMe7Ch_ex23XUzJ2SMDApWw4UoboDiXav-uFcUl6uVJvdTKZPi0N0ZFWFKCnsWatlkBVv7NsXPoHHEdNXkf7ds6DAW-y3s92cjHf836mTTW2thLt/s1600/Data+Flow+Process.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Rename - Change type - Add columns - Sort - Index - Close &amp;amp; Load To&quot; border=&quot;0&quot; data-original-height=&quot;59&quot; data-original-width=&quot;907&quot; height=&quot;41&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5NaVX-zy7w2j01Fm9Uci6WihbQwjSgMe7Ch_ex23XUzJ2SMDApWw4UoboDiXav-uFcUl6uVJvdTKZPi0N0ZFWFKCnsWatlkBVv7NsXPoHHEdNXkf7ds6DAW-y3s92cjHf836mTTW2thLt/s640/Data+Flow+Process.PNG&quot; title=&quot;Steps to process lookup table&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Process Lookup Table&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
Since this will be a Lookup (LU) Table, &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;rename&lt;/span&gt;&lt;/b&gt; the query Date_LU.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Notice that Power Query applied the step &quot;Changed Type&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivfxmtbqXDjTd-vWa9YGbvbHMuL-tkUS20kAuuVMyFilg2HB2sQFqL4HoGqLynneEW3Uq9lt3kzE9Bs_VD7NqvKuYE0CskNYGXHM1obSRMAIWkFSCv55Zra5__ZkAApZxrnDfIxFznn8qj/s1600/Changed+type+applied+steps.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;348&quot; data-original-width=&quot;359&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivfxmtbqXDjTd-vWa9YGbvbHMuL-tkUS20kAuuVMyFilg2HB2sQFqL4HoGqLynneEW3Uq9lt3kzE9Bs_VD7NqvKuYE0CskNYGXHM1obSRMAIWkFSCv55Zra5__ZkAApZxrnDfIxFznn8qj/s1600/Changed+type+applied+steps.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Power Query correctly assigned the data type of Date to the Start of the Month column.&amp;nbsp; However, for the MMYYYY column, the leading zeroes were lost.&amp;nbsp; &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Change the type&lt;/b&gt;&lt;/span&gt; to Text, which will retain the leading zeroes.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYY3ujj6sidtoO34k8WL06P65aJErcGOfGWXeXXG1byiYYn5h4sGTMLSkcyAaVuKnnjuQlcj4nm0v26yA8g_B8S0WB8s3K9JiS8mwO9rBQf8v0Leywf6VdiW8HAH7nUSz-Dr2P02cBnGb0/s1600/Change+type+to+Text+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;348&quot; data-original-width=&quot;365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYY3ujj6sidtoO34k8WL06P65aJErcGOfGWXeXXG1byiYYn5h4sGTMLSkcyAaVuKnnjuQlcj4nm0v26yA8g_B8S0WB8s3K9JiS8mwO9rBQf8v0Leywf6VdiW8HAH7nUSz-Dr2P02cBnGb0/s1600/Change+type+to+Text+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
When selecting to change the data type, Power Query will prompt with the alert below.&amp;nbsp; Select &quot;Replace current&quot;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSfHmaKksJIkcYCed6HsEZFLPkZ4e8XS1zjFuoXCgY_qbjqZIuEwC6bfdE6moPJp4cUYagDXAhElS7wmjF8Dy4fzhmKvxAgN8drnLRQ1XokC9b9sF0Jp3UTZqoHoQybKyNqrA1Ex8ctPg-/s1600/Replace+Current+message+crop.png&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;292&quot; data-original-width=&quot;657&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSfHmaKksJIkcYCed6HsEZFLPkZ4e8XS1zjFuoXCgY_qbjqZIuEwC6bfdE6moPJp4cUYagDXAhElS7wmjF8Dy4fzhmKvxAgN8drnLRQ1XokC9b9sF0Jp3UTZqoHoQybKyNqrA1Ex8ctPg-/s1600/Replace+Current+message+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Next, we are going to expand the Date Table by adding in Year, Month, Month Name, and an Index Column.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
With your cursor in the Start of Month column, go to the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Add Column&lt;/b&gt;&lt;/span&gt; tab, Date, Year, Year.&amp;nbsp; This adds a new column with the year.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirncWM_swJNWUO22UmJIovj6LcgdYCf76IfR9JLuY_-F8tgBLMe0oK3uCqt2ZR62f8Q5Gkx3j2xu1SFnts2oXneN9msvJSmSlbv7FeTxGj0k2AHoAzZSp_cX_kUCIrPRyKYsZ4_hPjPOn7/s1600/Select+Year+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;281&quot; data-original-width=&quot;664&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirncWM_swJNWUO22UmJIovj6LcgdYCf76IfR9JLuY_-F8tgBLMe0oK3uCqt2ZR62f8Q5Gkx3j2xu1SFnts2oXneN9msvJSmSlbv7FeTxGj0k2AHoAzZSp_cX_kUCIrPRyKYsZ4_hPjPOn7/s1600/Select+Year+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Move your cursor back to the Start of Month column, and go to the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Add Column&lt;/b&gt;&lt;/span&gt; tab, Date, Month, Month.&amp;nbsp; This adds a new column with the month number.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWv7PPcXymmO1D0h-_kwEQrpIM3HA3uvwF8suorgxWFVdXNykNrZnKCGIZ4obSjOJCmW2Cb6cxuAqyM4A6WAutQASsORK_mIKfpHgBBJScCy-JBJExv5M1OjVKamjLBUKQhoguLA_STyBw/s1600/Select+Month+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;266&quot; data-original-width=&quot;361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWv7PPcXymmO1D0h-_kwEQrpIM3HA3uvwF8suorgxWFVdXNykNrZnKCGIZ4obSjOJCmW2Cb6cxuAqyM4A6WAutQASsORK_mIKfpHgBBJScCy-JBJExv5M1OjVKamjLBUKQhoguLA_STyBw/s1600/Select+Month+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Move your cursor back to the Start of Month column, and let&#39;s add the Month Name.&amp;nbsp; Go to the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Add Column&lt;/b&gt;&lt;/span&gt; tab, Date, Month, Name of Month.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO9LVltsIgBhR78OvS8eQYOzFBVQzWom-M972VghQ1hyz3hQBUcISNyF32fWsiF375i-fKcZinLAijI_RwpRgABINvK1GmkmRwowhqnvneNvweDLuiem6yRboUPEB4zYNKmdYZKjxDat5x/s1600/Select+Name+of+Month+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO9LVltsIgBhR78OvS8eQYOzFBVQzWom-M972VghQ1hyz3hQBUcISNyF32fWsiF375i-fKcZinLAijI_RwpRgABINvK1GmkmRwowhqnvneNvweDLuiem6yRboUPEB4zYNKmdYZKjxDat5x/s1600/Select+Name+of+Month+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Next, let&#39;s &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;sort &lt;/span&gt;&lt;/b&gt;the Table.&amp;nbsp; Select the Start of Month column, and on the Home tab, select the Ascending sort button.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtca9XxLLS24VrS9pOmV2MTAKVwdrFokH1a8QCiv-cDatqHWNyhRKuRCEYrp9gACDoKlFiLK5LeMQ2fl3en75mgmCRlP7ARXrBSnFKAcWgztFobQbw67Dska0xBSq60MrtpJyuLUv2DgWR/s1600/Sort+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;136&quot; data-original-width=&quot;47&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtca9XxLLS24VrS9pOmV2MTAKVwdrFokH1a8QCiv-cDatqHWNyhRKuRCEYrp9gACDoKlFiLK5LeMQ2fl3en75mgmCRlP7ARXrBSnFKAcWgztFobQbw67Dska0xBSq60MrtpJyuLUv2DgWR/s1600/Sort+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now let&#39;s add an &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Index&lt;/span&gt;&lt;/b&gt; Column.&amp;nbsp; On the Add Column menu, select Index Column, From 1.&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp9kN1T7Qr3RXlvEKBf8EueQp8AMt-XZDOpv_4msFsTjID9wFtZvAQ3H9vj0el0MAx__F4NuAtMMsiZBT4o5xQLmDMjiw2Fq4pIjj6YBbkMZ3sMOGBYQvCr37X2vDVkkf4vkr5bumsBPpm/s1600/Index+column+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;164&quot; data-original-width=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp9kN1T7Qr3RXlvEKBf8EueQp8AMt-XZDOpv_4msFsTjID9wFtZvAQ3H9vj0el0MAx__F4NuAtMMsiZBT4o5xQLmDMjiw2Fq4pIjj6YBbkMZ3sMOGBYQvCr37X2vDVkkf4vkr5bumsBPpm/s1600/Index+column+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
On the Home tab, Close &amp;amp; Load, &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Close &amp;amp; Load To&lt;/b&gt;&lt;/span&gt;.&amp;nbsp; Then select, Only Create Connection and check the box to &quot;Add this data to the Data Model&quot;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkKT1-pWEeJ_aCa1cbZDGgOuYuvivYqkrnN0nEHtbaoYV0dMi9eBdrVwfmYNRZd6g29ca-zHnGRJSAUv9LwW-WFCiWR1DfSgeQmkGvl8a-NZ_7VybUTaoFYKUZn7ZlKIxn_sMAzGlEzJZ4/s1600/Only+Create+Connection.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;430&quot; data-original-width=&quot;428&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkKT1-pWEeJ_aCa1cbZDGgOuYuvivYqkrnN0nEHtbaoYV0dMi9eBdrVwfmYNRZd6g29ca-zHnGRJSAUv9LwW-WFCiWR1DfSgeQmkGvl8a-NZ_7VybUTaoFYKUZn7ZlKIxn_sMAzGlEzJZ4/s1600/Only+Create+Connection.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Save the workbook.&lt;/div&gt;
&lt;hr /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;💥BEST PRACTICE TIP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;For your future Data Models, save this workbook to use as a Date Table template. 💥&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;hr /&gt;
In this lesson, you learned how to:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Create a calendar Lookup Table;&lt;/li&gt;&lt;li&gt;Add Year, Month, and Name of Month columns to a query;&amp;nbsp;&lt;/li&gt;&lt;li&gt;Sort a column; and,&lt;/li&gt;&lt;li&gt;Create an Index column.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://1drv.ms/x/s!AsH5A836kUFPhox2eySDxVge2PFc9w?e=pUjWFp&quot; target=&quot;_blank&quot;&gt;SOLUTION&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/installing-power-pivot.html&quot;&gt;Installing Power Pivot&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/building-relationships.html&quot;&gt;Building relationships&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/8693171274841647624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/power-pivot-date-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/8693171274841647624'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/8693171274841647624'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/power-pivot-date-table.html' title='Power Pivot: Date Table'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIa1ciohlVOD7YgI9hjgoWHQxh6s0h4LyrQRqX-vxyuJrliP0YmW3iZWmeQGDw4rMn7riO15UEI-ANxUNAwzueFCuW-qaXoncXAYTDbNz3QtaPzVFgxyS9Dn_0tBUI4NGzQaAjR3ujtrRT/s72-w640-h40-c/Data+Flow.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-5923365189383582203</id><published>2019-06-03T07:00:00.012-05:00</published><updated>2021-10-16T22:32:38.396-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Getting Started"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>2 files, 1 Pivot Table: Power Pivot</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;New to this blog? Start&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2018/11/the-game-changer.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;&amp;nbsp;for an&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;Intro to Power Query.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;What if you could take 2 (or 20) files and analyze them in a single Pivot Table?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
Power Pivot provides the ability to analyze multiple files together in one Pivot Table along with additional data analytic tools and reporting functionalities.&amp;nbsp; And, &lt;b style=&quot;color: blue;&quot;&gt;Power Pivot, operates within the Excel and Pivot Tables you already know and love.&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/b&gt; &lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Intro to Power Pivot series&lt;/span&gt;&lt;/h3&gt;From this Intro to Power Pivot series, I hope you will become as enamored with Power Pivot as I have.&lt;br /&gt;
&lt;br /&gt;
The scenario for this exercise series will feel familiar to most accountants and analysts: there is a budget file and an actual file, which use different formats, and you need a report showing the variance by month.&lt;br /&gt;
&lt;br /&gt;
At the end of the series, you will be able to produce the following Pivot Table.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJeXOhELBBCMihfqIF4z1UDtQsuLoJVh9oTgnNrGhn2xhiGDSAWgh6BCO7LBBBJMtajiTiYF29zdKhYelb-EPjHkGWl28QBDNpoeK6Z-OxUC8J0T16sfJfURWvdTWjXy-E2BDPFTnU0snF/s1600/Power+Pivot+Table.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;416&quot; data-original-width=&quot;726&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJeXOhELBBCMihfqIF4z1UDtQsuLoJVh9oTgnNrGhn2xhiGDSAWgh6BCO7LBBBJMtajiTiYF29zdKhYelb-EPjHkGWl28QBDNpoeK6Z-OxUC8J0T16sfJfURWvdTWjXy-E2BDPFTnU0snF/s1600/Power+Pivot+Table.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The series will teach the 5 core steps to robust Data Models using Power Pivot:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqqh8q5JS_O3q4pU6w51UyaMSTzs3ssD6FGs3GfsDU9g_3FKrPOy1nlG503VuXioUxMNryxEwhIWjbOIOXCH4f7n3ZOGi9o4P6oNe3q4Y-LW359N7v84xm2NDJwbu5xvUodlLozfZIR7Hr/s1600/Data+Flow.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;1026&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqqh8q5JS_O3q4pU6w51UyaMSTzs3ssD6FGs3GfsDU9g_3FKrPOy1nlG503VuXioUxMNryxEwhIWjbOIOXCH4f7n3ZOGi9o4P6oNe3q4Y-LW359N7v84xm2NDJwbu5xvUodlLozfZIR7Hr/s16000/Data+Flow.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
These 5 core steps are covered over several posts as follows:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Installing Power Pivot&lt;/li&gt;
&lt;li&gt;Creating a Date Table [&lt;span style=&quot;color: #3d85c6;&quot;&gt;load Lookup Table]&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Building relationships [&lt;span style=&quot;color: #3d85c6;&quot;&gt;load Data Table][build relationship][Pivot]&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;2 Data Tables on 1 Pivot Table&lt;/li&gt;
&lt;li&gt;Measures [&lt;span style=&quot;color: #3d85c6;&quot;&gt;write Measures]&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
Select the Next post link below to get started.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/joins-illustration.html&quot;&gt;Joins illustration&lt;/a&gt;&lt;br /&gt;
Next post: &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/installing-power-pivot.html&quot;&gt;Installing Power Pivot&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
💬 Already using Power Pivot?&amp;nbsp; What advice do you have for new users? Comment below.</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/5923365189383582203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5923365189383582203'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/5923365189383582203'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html' title='2 files, 1 Pivot Table: Power Pivot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJeXOhELBBCMihfqIF4z1UDtQsuLoJVh9oTgnNrGhn2xhiGDSAWgh6BCO7LBBBJMtajiTiYF29zdKhYelb-EPjHkGWl28QBDNpoeK6Z-OxUC8J0T16sfJfURWvdTWjXy-E2BDPFTnU0snF/s72-c/Power+Pivot+Table.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-4764137069996025908</id><published>2019-06-03T07:00:00.009-05:00</published><updated>2021-05-23T02:53:37.560-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Getting Started"/><category scheme="http://www.blogger.com/atom/ns#" term="Intro Series PwrPvt"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Pivot"/><title type='text'>Installing Power Pivot</title><content type='html'>&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: &quot;ca-pub-7813996770981538&quot;,
          enable_page_level_ads: true
     });
&lt;/script&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0070c0; font-family: inherit; font-weight: bold;&quot;&gt;Using Excel 2013 or later?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Power Pivot is an Excel add-in.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;To enable, in the Excel ribbon, go to&amp;nbsp;File, Options, Add-Ins, and select Microsoft Power Pivot for Excel.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Click Go.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In the pop-up window, select Microsoft Power Pivot and then Enable.&amp;nbsp;&amp;nbsp;If Microsoft Power Pivot is not an option in the pop-up window, close the pop-up window and select Ok.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Back in Excel, on the ribbon, you should now have a new Power Pivot tab.&amp;nbsp; If so, you are all set and ready for the next lesson.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4-psHdrgwsDCvhPrOwMjsEDJ1O_N4HnsqfZSLgxo_u3h9_hHIQhv0zjJc2RJPHihMdz7A2mPWBjHkZs-n9h95tcMBR_FInwrzqwHGfqcSgdoJ9hTYp1_cIteJtQGufHKaC1YzO5op6l8t/s1600/PowerPivot+ribbon+crop.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;1035&quot; height=&quot;123&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4-psHdrgwsDCvhPrOwMjsEDJ1O_N4HnsqfZSLgxo_u3h9_hHIQhv0zjJc2RJPHihMdz7A2mPWBjHkZs-n9h95tcMBR_FInwrzqwHGfqcSgdoJ9hTYp1_cIteJtQGufHKaC1YzO5op6l8t/s640/PowerPivot+ribbon+crop.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;i&gt;If the Power Pivot tab is not on the ribbon,&lt;/i&gt; on the Data tab, find the green data model icon under Data Tools, as pictured below.&amp;nbsp; When hovered over, it should say &quot;Go to the Power Pivot Window&quot;.&amp;nbsp; A pop-up will ask if you want to enable data analysis tools.&amp;nbsp; Agree.&amp;nbsp; You should now have the Power Pivot tab on the ribbon and are ready to move on to the next lesson.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi78UVYu-Rg4_SpEG-iabBZ7WuGNAj7o3wj0DYAC50bIHpgpY0P4fII2KBePbAw7BIehxn3b9Dp1pJaInJXnH7CAyRiYdyuXcQbFbvYAsGQcDn_XvjGQ9-6qgoRVLJM8IlgbuO3YvtLbKz0/s1600/Data+Model+icon+crop.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;333&quot; data-original-width=&quot;468&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi78UVYu-Rg4_SpEG-iabBZ7WuGNAj7o3wj0DYAC50bIHpgpY0P4fII2KBePbAw7BIehxn3b9Dp1pJaInJXnH7CAyRiYdyuXcQbFbvYAsGQcDn_XvjGQ9-6qgoRVLJM8IlgbuO3YvtLbKz0/s1600/Data+Model+icon+crop.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Since Office 365 updates frequently, differences may exist.&amp;nbsp; For additional troubleshooting, try this&amp;nbsp;&lt;a href=&quot;https://support.office.com/en-ie/article/start-the-power-pivot-add-in-for-excel-a891a66d-36e3-43fc-81e8-fc4798f39ea8&quot; target=&quot;_blank&quot;&gt;link to Microsoft installation instructions&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #00b0f0; font-weight: bold;&quot;&gt;Using Excel 2010?&amp;nbsp;&lt;/span&gt;You will need to download the Add-in from Microsoft.&amp;nbsp; Follow this&amp;nbsp;&lt;a href=&quot;https://www.microsoft.com/en-us/download/details.aspx?id=102&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;Excel iOS and Online?&lt;/b&gt;&amp;nbsp; Power Pivot tables can be viewed in these Excel versions: no installation required.&amp;nbsp; However, changes can&#39;t be made to the underlying data model in these versions.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;Excel for Mac and Android?&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Microsoft does not support Power Pivot on these platforms.&amp;nbsp; &amp;nbsp;Share your voice on the&amp;nbsp;&lt;a href=&quot;https://excel.uservoice.com/forums/304933-excel-for-mac/suggestions/19568977-add-powerpivot-to-mac-excel&quot; target=&quot;_blank&quot;&gt;Microsoft user forum&lt;/a&gt;.☹️&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
Prior post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot;&gt;2 files, 1 Pivot Table: Power Pivot&lt;/a&gt;&lt;br /&gt;
Next post:&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/power-pivot-date-table.html&quot;&gt;Power Pivot Date Table&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/4764137069996025908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/installing-power-pivot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4764137069996025908'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/4764137069996025908'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/installing-power-pivot.html' title='Installing Power Pivot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4-psHdrgwsDCvhPrOwMjsEDJ1O_N4HnsqfZSLgxo_u3h9_hHIQhv0zjJc2RJPHihMdz7A2mPWBjHkZs-n9h95tcMBR_FInwrzqwHGfqcSgdoJ9hTYp1_cIteJtQGufHKaC1YzO5op6l8t/s72-c/PowerPivot+ribbon+crop.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6339592208449055941.post-2550044521325291117</id><published>2019-06-01T07:00:00.003-05:00</published><updated>2021-10-16T22:30:43.118-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Query"/><category scheme="http://www.blogger.com/atom/ns#" term="Troubleshooting"/><title type='text'>Joins illustration</title><content type='html'>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7813996770981538&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;New to this blog? Start the &lt;/b&gt;&lt;b style=&quot;font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Intro to Power Query series&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://knowledge.thecparevolution.com/2018/11/the-game-changer.html&quot; style=&quot;color: #888888;&quot;&gt;here&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;This is the 2&lt;sup&gt;nd&lt;/sup&gt; of 2 posts on joins and is a complement to the&amp;nbsp;&lt;a href=&quot;https://knowledge.thecparevolution.com/search?q=merge&quot;&gt;Merge post&lt;/a&gt;.&amp;nbsp; Link to &lt;a href=&quot;https://knowledge.thecparevolution.com/2019/05/joins-conceptually.html&quot;&gt;1&lt;sup&gt;st&lt;/sup&gt; post&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;hr /&gt;In this exercise, we move beyond the conceptual and work through an exercise using 2 data tables to demonstrate all 6 types of joins.&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;br /&gt;
Data table 1, &lt;i&gt;Account,&lt;/i&gt; contains a dollar value of $50.00.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNXjMReAsPx0TRhPIXzEOJSal9lkTB2HxDrVQrdNpyLjXzvQ1UzQ6r-OcxjZjsMDmrxzcaNNhKsJSFHjJ7HvqmCDdNmZAhX5gzPYgZmltLd3zbsxMcrvYXGqLFgiAbR-VT8l-pB9Gkdjeu/s1600/Data+table+1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;74&quot; data-original-width=&quot;409&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNXjMReAsPx0TRhPIXzEOJSal9lkTB2HxDrVQrdNpyLjXzvQ1UzQ6r-OcxjZjsMDmrxzcaNNhKsJSFHjJ7HvqmCDdNmZAhX5gzPYgZmltLd3zbsxMcrvYXGqLFgiAbR-VT8l-pB9Gkdjeu/s1600/Data+table+1.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Data table 2, &lt;i&gt;EEID,&lt;/i&gt; can be matched to Data table 1 based on Company.&amp;nbsp; However, there are multiple rows where the Company is Dallas.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkApyQ54PVP9swsuBzGElCoNZdvRHvZX8aW9ktnprFDB8y9ba4UAvRwbB6MizCsLCd71m5lTirkFfkJLmvTcmleL3fga9n6dxmrtlpQruvszjGNbwEWjd1_D74KUFLRD_0f1kGwFJbxI3q/s1600/Data+table+2.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;133&quot; data-original-width=&quot;409&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkApyQ54PVP9swsuBzGElCoNZdvRHvZX8aW9ktnprFDB8y9ba4UAvRwbB6MizCsLCd71m5lTirkFfkJLmvTcmleL3fga9n6dxmrtlpQruvszjGNbwEWjd1_D74KUFLRD_0f1kGwFJbxI3q/s1600/Data+table+2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;After loading each of the data tables in to Power Query, Merge Queries as New was applied, matching on Company.&amp;nbsp; &lt;i&gt;Account&lt;/i&gt; was the top table (left when viewed on a Venn diagram);&amp;nbsp; &lt;i&gt;EEID &lt;/i&gt;was the bottom table (right on a Venn diagram).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA2ItBx1y9zt64PE9WWc5EH2OHwnO2L-_M_kB9x0QnVlwQr25yYUXFU2Sfa3LlTrGjq5tLnSaO4No2TWorxixkaE1Fla30Y-ypovbDiFS-_OL2K2Hrkl_8UGkm87HL2godpDWJDBpPXAkX/s1600/Merge+Left+Outer+crop.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;593&quot; data-original-width=&quot;543&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA2ItBx1y9zt64PE9WWc5EH2OHwnO2L-_M_kB9x0QnVlwQr25yYUXFU2Sfa3LlTrGjq5tLnSaO4No2TWorxixkaE1Fla30Y-ypovbDiFS-_OL2K2Hrkl_8UGkm87HL2godpDWJDBpPXAkX/s1600/Merge+Left+Outer+crop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Download the workbook below to view the data tables and each of the joins.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;140&quot; scrolling=&quot;no&quot; src=&quot;https://onedrive.live.com/embed?resid=4F4191FACD03F9C1%2199927&amp;amp;authkey=%21AHhYTzqN6wQ1oHQ&amp;amp;em=2&amp;amp;wdAllowInteractivity=False&amp;amp;ActiveCell=&#39;Sheet1&#39;!B4&amp;amp;wdHideGridlines=True&amp;amp;wdHideHeaders=True&amp;amp;wdDownloadButton=True&amp;amp;wdInConfigurator=True&quot; width=&quot;335&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↑&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;h3&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; Left Outer join&lt;/span&gt;&lt;/h3&gt;The left outer join takes the &lt;i&gt;Account&lt;/i&gt; table (left) and brings back each row from the &lt;i&gt;EEID &lt;/i&gt;table (right) that has the same company.&amp;nbsp; Notice how the amount of $50.00 is in the new table twice.&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;It&#39;s duplicated&lt;/span&gt;, &lt;/b&gt;because there are 2 rows in the &lt;i&gt;EEID&lt;/i&gt; table where the Company is Dallas.&lt;br /&gt;
&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgsSfRdJHXV3wT6_nCVvQP1Q54n5SajJry26np_Swz-8Zup44EivD7FK1Tt1OtrZ30UtjOHZ96s7s1awFpFC7HY4VtKXiH_EoOeAWFC9VDWW3fCb0fAFMk-1zVIEx1gXIja-oE9csDb9Jj/s1600/Left+Outer+Company.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;104&quot; data-original-width=&quot;711&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgsSfRdJHXV3wT6_nCVvQP1Q54n5SajJry26np_Swz-8Zup44EivD7FK1Tt1OtrZ30UtjOHZ96s7s1awFpFC7HY4VtKXiH_EoOeAWFC9VDWW3fCb0fAFMk-1zVIEx1gXIja-oE9csDb9Jj/s1600/Left+Outer+Company.PNG&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;A VLOOKUP in native Excel returns the first match; a Merge in Power Query returns &lt;u&gt;all&lt;/u&gt; matches.&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;This critical difference can dramatically skew your analysis if not handled appropriately.&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Future blog posts, particularly on Power Pivot, will provide alternate solutions for how to handle multiple data sets with duplicate values in the matching column.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;h3 style=&quot;clear: both; font-weight: bold; text-align: left;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Right Outer join&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The right outer join takes the&amp;nbsp;&lt;i&gt;EEID&amp;nbsp;&lt;/i&gt;table (right)&amp;nbsp;and brings back each row from the&amp;nbsp;&lt;i&gt;Account&lt;/i&gt;&amp;nbsp;table (left)&amp;nbsp;that has the same company.&amp;nbsp; &lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;&lt;b&gt;Notice how the $50.00 amount is again duplicated&lt;/b&gt;,&lt;/span&gt; since it matches 2 rows from the &lt;i&gt;EEID&lt;/i&gt; table.&amp;nbsp; In addition, the Houston company has been added to the table, since the join starts with all company items in the right table.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2XOjrnbH7pVW04TJeQTdyjXwwS6vICYkyKeSTvttstxF4vwCFaSKT1fVMF2J0xxkKlubPMkt-8ShlTw20TgA2bbLxsxtaO9yqk8jkznW1p9C0gTWEhwQ2giUDGqbDGsIPQN9qD_GwrgIc/s1600/FullOuter+Company.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;133&quot; data-original-width=&quot;925&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2XOjrnbH7pVW04TJeQTdyjXwwS6vICYkyKeSTvttstxF4vwCFaSKT1fVMF2J0xxkKlubPMkt-8ShlTw20TgA2bbLxsxtaO9yqk8jkznW1p9C0gTWEhwQ2giUDGqbDGsIPQN9qD_GwrgIc/s16000/FullOuter+Company.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;h3 style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Left Anti join&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;The left anti join starts with the &lt;i&gt;Account&lt;/i&gt; table (left) and returns a value if there is no match in the &lt;i&gt;EEID &lt;/i&gt;table.&amp;nbsp; In this instance, the Company Dallas was in the &lt;i&gt;EEID&lt;/i&gt; table, and so the resulting table is blank.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioq3nrNPrgnK2Ytn8n1u91QWcfdvZigOmByYcpxoEjk28eK3wSLEbczpAiTKOMfYLerqvQN8QeITqN8y2gfEKEi4AosrE01NuSspwXo1xApJjvl0LY17Eg7Kcl3-5Zbq_7_3no7WzhWSOt/s1600/Left+Anti+Company.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;79&quot; data-original-width=&quot;924&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioq3nrNPrgnK2Ytn8n1u91QWcfdvZigOmByYcpxoEjk28eK3wSLEbczpAiTKOMfYLerqvQN8QeITqN8y2gfEKEi4AosrE01NuSspwXo1xApJjvl0LY17Eg7Kcl3-5Zbq_7_3no7WzhWSOt/s16000/Left+Anti+Company.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;h3 style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Right Anti join&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;The right anti join starts with the &lt;i&gt;EEID&lt;/i&gt;&amp;nbsp;table (right) and returns a value if there is no match in the&amp;nbsp;&lt;i&gt;Account&amp;nbsp;&lt;/i&gt;table.&amp;nbsp; In this instance, the Company Houston was in the&amp;nbsp;&lt;i&gt;EEID&lt;/i&gt;&amp;nbsp;table but not the&lt;i&gt; Account&lt;/i&gt; table.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiCidp9j1SFonKS0o1sq9bNeSNpcxcW8sHtzVIKzN7zQU6e0pz3lX-labzwAtNXCiP-dQTq37ZirZen0b5tO-TXokXkWIj6vEoLquZSUgrMVFDOXzRO9iXKSVmvqpsJg-XA5Zxdjqnz7In/s1600/Right+Anti+Company.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;73&quot; data-original-width=&quot;921&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiCidp9j1SFonKS0o1sq9bNeSNpcxcW8sHtzVIKzN7zQU6e0pz3lX-labzwAtNXCiP-dQTq37ZirZen0b5tO-TXokXkWIj6vEoLquZSUgrMVFDOXzRO9iXKSVmvqpsJg-XA5Zxdjqnz7In/s16000/Right+Anti+Company.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Anti joins are excellent audit tools to monitor exceptions or open items.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;h3 style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Inner join&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;The inner join returns values only when Company matches in both tables.&amp;nbsp; &lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Notice the $50.00 amount is duplicated.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmW1ZsQ3m0qsv7WnVmFI3GtK7vb65tV1u2jouZONYYfTsKG6Le871-_vBXc_HpCRfUY3bRpfVj8nZ6vkAiWMEL3vlOK0Pszrj7ZHxcMuNl7QpmW7IOmOFbx8L-7Mp3pOO-haeG_GXeqhBf/s1600/Inner+JoinCompany.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;101&quot; data-original-width=&quot;921&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmW1ZsQ3m0qsv7WnVmFI3GtK7vb65tV1u2jouZONYYfTsKG6Le871-_vBXc_HpCRfUY3bRpfVj8nZ6vkAiWMEL3vlOK0Pszrj7ZHxcMuNl7QpmW7IOmOFbx8L-7Mp3pOO-haeG_GXeqhBf/s16000/Inner+JoinCompany.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;h3 style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Full Outer join&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;The full outer join returns every Company in each table.&amp;nbsp;&lt;b style=&quot;font-weight: bold;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Notice the $50.00 amount is duplicated.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiscxG_T0JsD3m_vaEBt_N_YQ8nAsXPRixuRk3DSNPfmXXX0eRW7fIn83Qdb0tgRYAfB7dmUJZpjAWJYAVnSa2q2Gy1qacOev6jbqUYh5cfiqk9WWeG1X1Zb06YMFQwcaHPvOGGPiD4hArp/s1600/Right+Outer+Company.PNG&quot; style=&quot;clear: left; float: left; font-weight: bold; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;132&quot; data-original-width=&quot;710&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiscxG_T0JsD3m_vaEBt_N_YQ8nAsXPRixuRk3DSNPfmXXX0eRW7fIn83Qdb0tgRYAfB7dmUJZpjAWJYAVnSa2q2Gy1qacOev6jbqUYh5cfiqk9WWeG1X1Zb06YMFQwcaHPvOGGPiD4hArp/s1600/Right+Outer+Company.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;h3 style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Append&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;Append is another option for combining tables using Power Query.&amp;nbsp; Append is designed to take an existing table and expand it by adding on another table that uses the same column names.&amp;nbsp; If a column name doesn&#39;t exist in the original table, new columns are added.&amp;nbsp; Notice that append picked up the 1 row from the &lt;i&gt;Account&lt;/i&gt; table and the 3 rows from the &lt;i&gt;EEID&lt;/i&gt; table exactly as they appeared originally.&amp;nbsp; There is no Company.1 column and &lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;the $50.00 amount is NOT duplicated.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifAsNh4ZaZQa5N6UBLIr1Bg7sYWBZhAF-FXgoQVhTRwCzV_2GVrjlpKvEEYdGuLJ4vV1exqeYa8d-vruupcvZOXLlllh5jT4buGdaV8ldKNz2f8pb_JlSHOyetVkNKLkSooLElC2fZCsz_/s1600/Append.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;160&quot; data-original-width=&quot;816&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifAsNh4ZaZQa5N6UBLIr1Bg7sYWBZhAF-FXgoQVhTRwCzV_2GVrjlpKvEEYdGuLJ4vV1exqeYa8d-vruupcvZOXLlllh5jT4buGdaV8ldKNz2f8pb_JlSHOyetVkNKLkSooLElC2fZCsz_/s16000/Append.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;💥&lt;span style=&quot;color: red;&quot;&gt;BEST PRACTICE TIP&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;As a general rule, Append is intended to make a table longer, while Merge makes a table wider. 💥&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Merge and Append allow accountants and analyst to perform a wide array of new analytics.&amp;nbsp; However,&lt;span style=&quot;font-weight: bold;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extra diligence is required to ensure the steps applied are yielding the analysis intended.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
In this lesson, you learned how to:&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;join 2 data tables using Merge;&lt;/li&gt;&lt;li&gt;watch out for duplicates which could skew results; and,&lt;/li&gt;&lt;li&gt;Append multiple data tables together instead of Merge.&amp;nbsp; &amp;nbsp;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt; Prior post:&amp;nbsp;&lt;/b&gt;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/05/joins-conceptually.html&quot; style=&quot;font-weight: bold;&quot;&gt;Joins conceptually&lt;/a&gt;&lt;br /&gt;
&lt;b&gt; Next post:&amp;nbsp;&lt;/b&gt;&lt;a href=&quot;https://knowledge.thecparevolution.com/2019/06/2-files-1-pivot-table-power-pivot.html&quot; style=&quot;font-weight: bold;&quot;&gt;2 files 1 pivot table: Power Pivot&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowledge.thecparevolution.com/feeds/2550044521325291117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/joins-illustration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/2550044521325291117'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6339592208449055941/posts/default/2550044521325291117'/><link rel='alternate' type='text/html' href='https://knowledge.thecparevolution.com/2019/06/joins-illustration.html' title='Joins illustration'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNXjMReAsPx0TRhPIXzEOJSal9lkTB2HxDrVQrdNpyLjXzvQ1UzQ6r-OcxjZjsMDmrxzcaNNhKsJSFHjJ7HvqmCDdNmZAhX5gzPYgZmltLd3zbsxMcrvYXGqLFgiAbR-VT8l-pB9Gkdjeu/s72-c/Data+table+1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>