<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Raquel Dourado C. on Medium]]></title>
        <description><![CDATA[Stories by Raquel Dourado C. on Medium]]></description>
        <link>https://medium.com/@raqueldouradoc?source=rss-686738840010------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZrAX0dsquXhgudGXqpuT0g.jpeg</url>
            <title>Stories by Raquel Dourado C. on Medium</title>
            <link>https://medium.com/@raqueldouradoc?source=rss-686738840010------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:35:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raqueldouradoc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Wearing the Same Outfit Almost Every Day: My Experience with a Minimalist Closet]]></title>
            <link>https://medium.com/@raqueldouradoc/wearing-the-same-outfit-almost-every-day-my-experience-with-a-minimalist-closet-db2a3512d908?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2a3512d908</guid>
            <category><![CDATA[minimalism]]></category>
            <category><![CDATA[focus]]></category>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 20:45:58 GMT</pubDate>
            <atom:updated>2024-06-30T20:52:35.978Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uI96XLh0la5BdrzL" /><figcaption>Photo by <a href="https://unsplash.com/@norevisions?utm_source=medium&amp;utm_medium=referral">No Revisions</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>I used to spend too much on clothes.</strong></p><p>Not just money, but also countless hours browsing shopping sites. It consumed me.</p><p>Six months ago, I made a drastic decision: to wear the same outfit almost every day — jeans and a black polo shirt, even at work. This change not only simplified my life but also helped me focus on what truly matters.</p><h3><strong>Here’s how I did it</strong></h3><p>I already had some jeans. I only needed black polo shirts, which I found at a uniform store offering good quality and price. So, I bought several identical ones.</p><h3>What others thought</h3><p>My biggest concern was how others would perceive it. Since a young age, I often felt underdressed among friends, which may have shaped my complicated relationship with clothing.</p><p>Would people judge me for wearing the same outfit every day? Interestingly, only two people commented on my change: a colleague at work and my mom.</p><p>My colleague found it unusual and criticized me. But guess what? Recently, I’ve noticed him wearing jeans and black polos more frequently (maybe I’m starting a trend, except not really).</p><p>My mom asked if my clothes were clean (because she thought they were the same every day). I explained they were all identical now, and she thought it was a nice idea (as long as they’re clean).</p><h3>The benefits</h3><p>Saving money and time looking for clothes were immediate benefits. Equally important was the time saved each day: less time spent deciding what to wear.</p><h3>Looking ahead</h3><p>I’m not sure if I’ll continue this 100%. Perhaps I’ll gradually introduce more variety. Nevertheless, it’s been a worthwhile experiment that has helped me shed insecurities and embrace simplicity.</p><p><strong>Stay focused!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2a3512d908" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey with ChatGPT to Create My First VBA Macro.]]></title>
            <link>https://medium.com/@raqueldouradoc/the-future-of-vba-my-journey-with-chatgpt-to-create-my-first-macro-709658cc7bf1?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/709658cc7bf1</guid>
            <category><![CDATA[vba-macros]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[vba]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 00:47:03 GMT</pubDate>
            <atom:updated>2024-04-01T00:51:42.754Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*juMUD8QF3RYHNpx9DeY-PA.png" /><figcaption>Screenshot by author</figcaption></figure><p>The future of VBA (Visual Basic for Applications) is subject to debate and speculation. VBA has been a component of Microsoft Excel for many years, providing automation capabilities and enhancing functionality within the program.</p><p>However, with the rise of alternative programming languages, the emergence of tools like Power Query and Office Scripts, and the increasing development of AI technologies, some analysts question the long-term viability and relevance of VBA.</p><p><strong>So, why learn VBA nowadays?</strong></p><p>With Microsoft Excel’s continued popularity in the business sphere and its ongoing utilization of VBA, the language continues to be employed for automating repetitive tasks, generating reports, and creating interactive user interfaces.</p><h3>My experience:</h3><h4>The first ‘problem’ I attempted to solve using VBA, despite not having much prior knowledge of it, with the assistance of ChatGPT.</h4><p>Starting to learn VBA by directly tackling my real-world problem was challenging… but highly motivating. By immediately applying new knowledge to solve my practical issues, I could stay engaged.</p><p>As I work for a company with multiple branches, it’s common for me to have to send Excel worksheets to each branch. With a little guilt, I confess that I used to do it manually.</p><p>So, I started to search for solutions using VBA and, during this search, I asked GPT chat: “hi, could you write a VBA macro to send 10 different worksheets to 10 different emails?” And this was the answer:</p><blockquote>Certainly! Below is a VBA macro that sends each of the first 10 worksheets in the workbook to 10 different email addresses:</blockquote><pre>Sub SendWorksheetsToEmails()<br>    Dim OutlookApp As Object<br>    Dim OutlookMail As Object<br>    Dim ws As Worksheet<br>    Dim emailAddresses(1 To 10) As String<br>    Dim i As Integer<br>    <br>    &#39; Define the email addresses (change these to the desired email addresses)<br>    emailAddresses(1) = &quot;recipient1@example.com&quot;<br>    emailAddresses(2) = &quot;recipient2@example.com&quot;<br>    emailAddresses(3) = &quot;recipient3@example.com&quot;<br>    emailAddresses(4) = &quot;recipient4@example.com&quot;<br>    emailAddresses(5) = &quot;recipient5@example.com&quot;<br>    emailAddresses(6) = &quot;recipient6@example.com&quot;<br>    emailAddresses(7) = &quot;recipient7@example.com&quot;<br>    emailAddresses(8) = &quot;recipient8@example.com&quot;<br>    emailAddresses(9) = &quot;recipient9@example.com&quot;<br>    emailAddresses(10) = &quot;recipient10@example.com&quot;<br>    <br>    &#39; Create Outlook application object<br>    Set OutlookApp = CreateObject(&quot;Outlook.Application&quot;)<br>    <br>    &#39; Loop through the first 10 worksheets in the workbook<br>    For i = 1 To 10<br>        Set ws = ThisWorkbook.Worksheets(i)<br>        <br>        &#39; Create a new mail item<br>        Set OutlookMail = OutlookApp.CreateItem(0)<br>        <br>        &#39; Attach the current worksheet as a PDF file to the email<br>        ws.ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.Path &amp; &quot;\&quot; &amp; ws.Name &amp; &quot;.pdf&quot;<br>        OutlookMail.Attachments.Add ThisWorkbook.Path &amp; &quot;\&quot; &amp; ws.Name &amp; &quot;.pdf&quot;<br>        <br>        &#39; Set the recipient email address<br>        OutlookMail.To = emailAddresses(i)<br>        <br>        &#39; Set the subject of the email<br>        OutlookMail.Subject = &quot;Worksheet: &quot; &amp; ws.Name<br>        <br>        &#39; Send the email<br>        OutlookMail.Send<br>        <br>        &#39; Clean up<br>        Set OutlookMail = Nothing<br>        <br>        &#39; Wait for 1 second to prevent Outlook from being overwhelmed<br>        Application.Wait Now + TimeValue(&quot;0:00:01&quot;)<br>    Next i<br>    <br>    &#39; Clean up<br>    Set OutlookApp = Nothing<br>End Sub</pre><blockquote>Before running this macro, make sure to adjust the recipient email addresses and potentially other email properties as needed. Additionally, ensure that Outlook is properly configured on your system for sending emails.</blockquote><p><strong>The moment terms like ‘Sub,’ ‘Dim,’ and ‘Loop’ caught my attention, they immediately piqued my curiosity and motivated me to delve into the basics of VBA.</strong></p><p><strong>Let’s break it down:</strong></p><p>“Sub”, short for “Subroutine,” denotes a block of code designed to perform a specific task.</p><p>This subroutine starts by declaring variables using the ‘Dim’ keyword, indicating both the data type and name of each variable. Variable declaration in VBA is pivotal for enhancing code readability, error prevention, and ensuring proper memory allocation.</p><pre>Sub SendWorksheetsToEmails()<br>    Dim OutlookApp As Object<br>    Dim OutlookMail As Object<br>    Dim ws As Worksheet<br>    Dim emailAddresses(1 To 10) As String<br>    Dim i As Integer</pre><p>The code then assigns email addresses to the array ‘emailAddresses.’</p><pre>&#39; Define the email addresses (change these to the desired email addresses)<br>    emailAddresses(1) = &quot;recipient1@example.com&quot;<br>    emailAddresses(2) = &quot;recipient2@example.com&quot;<br>    emailAddresses(3) = &quot;recipient3@example.com&quot;<br>    emailAddresses(4) = &quot;recipient4@example.com&quot;<br>    emailAddresses(5) = &quot;recipient5@example.com&quot;<br>    emailAddresses(6) = &quot;recipient6@example.com&quot;<br>    emailAddresses(7) = &quot;recipient7@example.com&quot;<br>    emailAddresses(8) = &quot;recipient8@example.com&quot;<br>    emailAddresses(9) = &quot;recipient9@example.com&quot;<br>    emailAddresses(10) = &quot;recipient10@example.com&quot;</pre><p>Subsequently, the CreateObject method is utilized to instantiate an Outlook Application object.</p><pre>&#39; Create Outlook application object<br>    Set OutlookApp = CreateObject(&quot;Outlook.Application&quot;)<br>    </pre><p>Following this, the For Loop iterates over the first 10 worksheets in the workbook.</p><pre>&#39; Loop through the first 10 worksheets in the workbook<br>    For i = 1 To 10<br>        Set ws = ThisWorkbook.Worksheets(i)</pre><p>Within the loop, each worksheet is referenced by the variable ‘ws,’ allowing for individual processing.</p><p>Utilizing the CreateItem(0) method, a new email message is generated using Microsoft Outlook. The subsequent line exports the current worksheet to a PDF file within the workbook’s directory. The exported PDF is then added as an attachment to the email message.</p><pre>&#39; Create a new mail item<br>        Set OutlookMail = OutlookApp.CreateItem(0)<br>        <br>        &#39; Attach the current worksheet as a PDF file to the email<br>        ws.ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.Path &amp; &quot;\&quot; &amp; ws.Name &amp; &quot;.pdf&quot;<br>        OutlookMail.Attachments.Add ThisWorkbook.Path &amp; &quot;\&quot; &amp; ws.Name &amp; &quot;.pdf&quot;<br> </pre><p>After recipient addresses and email subjects are defined, emails are sent, and OutlookMail objects are cleaned up. Lastly, a 1-second delay is implemented to prevent Outlook from becoming overwhelmed by rapid email sending.</p><pre>&#39; Set the recipient email address<br>        OutlookMail.To = emailAddresses(i)<br>        <br>        &#39; Set the subject of the email<br>        OutlookMail.Subject = &quot;Worksheet: &quot; &amp; ws.Name<br>        <br>        &#39; Send the email<br>        OutlookMail.Send<br>        <br>        &#39; Clean up<br>        Set OutlookMail = Nothing<br>        <br>        &#39; Wait for 1 second to prevent Outlook from being overwhelmed<br>        Application.Wait Now + TimeValue(&quot;0:00:01&quot;)<br>    Next i<br>    <br>    &#39; Clean up<br>    Set OutlookApp = Nothing<br>End Sub</pre><p>Great! After modifying the email names and implementing the code, I found that it effectively solved my problem. Sending all the emails with just one click was a huge time-saver.</p><p>As I gained more experience with VBA, I realized the possibility of defining a range of cells containing email addresses and worksheet names. This approach helps to avoid potential errors that could arise if the order of sheets were modified.</p><p>In conclusion, my experience with VBA and ChatGPT while creating my first macro was insightful. Hands-on problem-solving helped me recognize VBA’s practicality, motivating me to delve into its features and tailor solutions to my needs. Despite ongoing debates about VBA’s future, it remains a valuable asset for professionals seeking to optimize their Excel-based workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=709658cc7bf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering 7 Essential Power BI Visualizations: Choosing the Right Graph to Convey Your Message.]]></title>
            <link>https://medium.com/@raqueldouradoc/mastering-7-essential-power-bi-visualizations-choosing-the-right-graph-to-convey-your-message-cc42fd554ed2?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc42fd554ed2</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[graphics]]></category>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 01:11:51 GMT</pubDate>
            <atom:updated>2024-03-21T01:11:51.903Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the world of Power BI visualizations, where data meets creativity to tell compelling stories. In this article, we’ll embark on a journey through 7 essential Power BI visualizations, exploring their unique capabilities and learning how to select the perfect graph to convey your message effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*leCcS0UforSsuSNr" /><figcaption>Photo by <a href="https://unsplash.com/@isaacmsmith?utm_source=medium&amp;utm_medium=referral">Isaac Smith</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Why does the choice of graph play a pivotal role in the success of an analysis presentation?</strong></p><ol><li>Clarity in communication: A clear and concise visualization improves understanding and ensures that your audience grasps the key points of your analysis.</li><li>Impact and Engagement: The right graph has the power to captivate your audience and make the insights memorable.</li><li>Interpretation and Action: One of the primary objectives of visualizations is to facilitate interpretation and expedite informed decision-making.</li></ol><blockquote><strong>Choosing the right </strong>visualization<strong> is a key factor in unlocking data’s true narrative.</strong></blockquote><p>The example plots will be based on fictional data from an ice cream store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hN2AdAraAkTIEAuj" /><figcaption>Photo by <a href="https://unsplash.com/@dylanferreira?utm_source=medium&amp;utm_medium=referral">Dylan Ferreira</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>1. CARDS</h3><p>Card visualizations are commonly employed to highlight single, crucial values, effectively drawing attention to the most critical information. Whether it’s the total revenue, current inventory levels, or customer satisfaction scores, cards provide a succinct snapshot of key metrics.</p><p>Positioning cards at the top of a dashboard aligns with the Z-pattern reading, which refers to the natural eye movement of readers as they scan content from the top-left corner to the top-right corner, then diagonally down to the bottom-left corner, and finally across to the bottom-right corner, forming a “Z” shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*KkHmMQpg-GZ7fKWhTEB8XQ.png" /><figcaption>Image by author</figcaption></figure><h3>2. BARPLOT</h3><p>Barplots, also known as bar charts, are versatile visualizations commonly used to represent categorical data. They effectively display comparisons between different categories or groups, making them easy to interpret even for non-technical audiences.</p><p>With their horizontal arrangement of bars, viewers can easily scan them to make comparisons. Barplots are also good for ranking categories when values are ordered in descending order, providing a clear visual representation of the hierarchy among categories.</p><p>In languages and cultures where text is read from left to right, barplots may align more naturally with the reading direction. This alignment enhances the intuitive understanding of the visualization, as viewers can follow the natural flow of their reading habits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*x7OSi5xbFxx_NjMCEr2Kkw.png" /><figcaption>Image by author</figcaption></figure><h3>3. COLUMN PLOT</h3><p>Column plots make it easy to compare values across different categories, allowing viewers to visually compare the heights of the columns to understand relative magnitudes or differences. In certain layouts or presentations, vertical space may be more abundant than horizontal space.</p><p>Column plots are effectively utilized to show data over time, convey evolution, and represent continuity. By arranging columns in chronological order, column plots provide a clear visual representation of evolutionary trends. Viewers can easily identify patterns, fluctuations, and trends over time by observing the progression of columns from left to right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*AWgY6nnBkg6e-WofwarBlA.png" /><figcaption>Image by author</figcaption></figure><p>Clustered Column plots can present two (or more) series of data side by side, allowing for easy comparison between them. In the example below, revenue and budget revenue are represented as two separate series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*R3LOrkNOl5V01u0ORZygtw.png" /><figcaption>Image by author</figcaption></figure><p>When dealing with two series of data that have different scales, one option is to create a combined line and column chart with a secondary axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*1p0Bs0SKDDYUk3FShdncZg.png" /><figcaption>Image by author</figcaption></figure><p>However, integrating a secondary axis may require additional time for viewers to grasp, and this type of graph may not always be optimal for certain cases. In such situations, it may be more effective to present the data separately, perhaps arranging them vertically.</p><h3>4. DONUT</h3><p>Donut charts are popular for displaying data in a circular format, illustrating how parts contribute to the whole. Unlike pie charts, donut charts feature a hole in the center, which enhances data clarity.</p><p>The controversy surrounding pie charts arises from the challenge of accurately comparing slice angles and sizes, particularly with numerous categories or subtle differences. Donut charts alleviate this issue by removing the center, directing viewers’ focus to relative proportions rather than total values.</p><p>However, donut charts can still pose challenges in interpretation when there are many segments or minimal differences. It’s advisable to use them judiciously and consider alternative chart types for complex data. In specific cases, such as illustrating a few distinct categories with clear differences, donut charts can be effective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*Eow4babP62lUsi-Nr4nejw.png" /><figcaption>Image by author</figcaption></figure><h3>5. LINE</h3><p>Line charts are well-suited for trend analysis and tracking changes over time, emphasizing continuity between data points to illustrate progression or flow.</p><p>Bar charts also display data over time, and they can be better for comparing volumes or quantities at specific points in time, but line plots excel in illustrating the overall trend and pattern of change across a continuous period, offering a more comprehensive view of the data’s evolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*pFVsVGfmfzA5VLgdMbVxjg.png" /><figcaption>Image by author</figcaption></figure><h3>6. AREA</h3><p>Area charts are similar to line charts, but they have the space between the line and the x-axis filled with color.</p><p>So why opt for an area chart over a line plot?</p><p>In some situations, area charts can be preferable for emphasizing the magnitude of changes over time or highlighting accumulated totals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*rWPGlpvwdAMKcuf8PfwGfg.png" /><figcaption>Image by author</figcaption></figure><h3>7. Matrix Visual</h3><p>The matrix visual is useful for conducting detailed data analysis, offering precision, facilitating data comparison, and providing a structured presentation. It is particularly valuable when handling numerical data that requires accurate measures and analysis involving values with different units of measurement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*MCpAK3xP-5S0oaLSqfa96Q.png" /><figcaption>Image by author</figcaption></figure><p><strong>In conclusion</strong>, mastering the art of Power BI visualizations involves not only understanding the unique capabilities of each graph but also considering the audience and context in which the data will be presented. It’s essential to prioritize clarity, simplicity, and relevance in your visualizations. By tailoring your visualizations to the needs and preferences of your audience and focusing on conveying insights concisely and effectively, you can elevate your data storytelling skills and unleash the full power of visualization in Power BI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc42fd554ed2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering 40 Essential Power BI Functions for Analytical Success]]></title>
            <link>https://medium.com/@raqueldouradoc/mastering-40-essential-power-bi-functions-for-analytical-success-890abd424578?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/890abd424578</guid>
            <category><![CDATA[dax]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 02:50:02 GMT</pubDate>
            <atom:updated>2024-06-08T19:05:18.047Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we’ll embark on a journey to unlock the full potential of Power BI by mastering 40 essential functions.</p><p><strong>Yes, 40 functions.</strong></p><p>Whether you’re a seasoned data analyst or just dipping your toes into the world of business intelligence, these functions will help to achieve analytical success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Z1DjqAhEUKkC5AP" /><figcaption>Photo by <a href="https://unsplash.com/@attentieattentie?utm_source=medium&amp;utm_medium=referral">Attentie Attentie</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>But first, what is DAX?</strong></p><p>DAX stands for Data Analysis Expressions. DAX is a formula language used in Analysis Services, Power BI, and Power Pivot in Excel. DAX functions can be used for a variety of purposes, including creating calculated columns, measures, and calculated tables, as well as performing aggregations, filtering, and date/time calculations.</p><p>Dax has over 200 functions that fall into categories like Aggregation, Date and Time, Filter functions, Logical and others.</p><p><strong>Measure X Calculated Columns</strong></p><p>Measures are used for dynamic aggregations and calculations at the report level, while calculated columns are used for adding static calculated values to tables at the row level.</p><p>Power BI functions work for measures and calculated columns. Some functions are specifically designed to work with measures, while others are designed for calculated columns. Some functions, like ROUND and CONCATENATE, can work with both measures and calculated columns.</p><blockquote>Before we delve into each function individually, here’s a piece of personal advice: avoid attempting to memorize numerous functions and their arguments. Instead, focus on understanding their existence and applicability, utilizing them when needed.</blockquote><h3>Let’s start with the functions related to aggregations, math, and statistical:</h3><h3>1. SUM</h3><p><strong>This function takes the column and add all the numbers.</strong></p><p><strong>Sintax:</strong></p><p><em>SUM(&lt;column&gt;)</em></p><p><strong>Example:</strong></p><pre>= SUM(Sales[Quantity])</pre><p>This expression adds all the numbers in the column “Quantity” from the table “Sales”.</p><h3>2. AVERAGE</h3><p><strong>This function returns the average (arithmetic mean) of all numbers in a column.</strong></p><p><strong>Sintax:</strong></p><p><em>AVERAGE(&lt;column&gt;)</em></p><p><strong>Example:</strong></p><pre>= AVERAGE(Sales[Price])</pre><p>This expression returns the average of the values in the column “Price” from the table “Sales”.</p><h3>3. MAX</h3><p><strong>It returns a maximun value of a column.</strong></p><p><strong>Sintax:</strong></p><p><em>MAX(&lt;column&gt;)</em></p><p><strong>Example:</strong></p><pre>= MAX(Sales[Price])</pre><p>This example returns the largest value in the column “Price” from the table “Sales”.</p><h3>4. MIN</h3><p><strong>It returns a minimun value of a column.</strong></p><p><strong>Sintax:</strong></p><p><em>MIN(&lt;column&gt;)</em></p><p><strong>Example:</strong></p><pre>= MIN(Sales[Price])</pre><p>This example returns the smallest value in the column “Price” from the table “Sales”.</p><h3>5. DIVIDE</h3><p><strong>It divides and returns alternate result or BLANK() on division by 0.</strong></p><p><strong>Sintax:</strong></p><p><em>DIVIDE(&lt;numerator&gt;, &lt;denominator&gt; [,&lt;alternateresult&gt;])</em></p><p>Different from the division operator ‘/’, the DIVIDE function handles division by zero. The optional ‘alternateresult’ argument, when passed in, is returned instead of BLANK.</p><p><strong>Example:</strong></p><pre>Profit Margin%= DIVIDE([Profit], [Revenue])*100</pre><p>This example calculates the profit margin percentage by dividing the profit by the revenue and then multiplying the result by 100 to convert it into a percentage.</p><h3>6. COUNT</h3><p><strong>It returns the number of non-blank cells in a column.</strong></p><p><strong>Sintax:</strong></p><p><em>COUNT(&lt;column&gt;)</em></p><p><strong>Example:</strong></p><pre>= COUNT(Sales[Store_ID])</pre><p>This example counts the number of non-blank cells in the column “Store_ID” . Be aware that this function include duplicated “Store_ID” in the count.</p><h3>7. DISTINCTCOUNT</h3><p><strong>It returns the number of distinct values in a column.</strong></p><p><strong>Sintax:</strong></p><p><em>DISTINCTCOUNT(&lt;column&gt;)</em></p><p><strong>Example:</strong></p><pre>= DISTINCTCOUNT(Sales[Store_ID])</pre><p>Here, different from the function above (COUNT), the expression counts distinct values in the column “Store_ID”.</p><h3>8. COUNTROWS</h3><p><strong>It counts the number of rows in a table.</strong></p><p><strong>Sintax:</strong></p><p><em>COUNTROWS(&lt;table&gt;)</em></p><p><strong>Example:</strong></p><pre>= COUNTROWS(Sales)</pre><p>This example counts the number of rows in the table “Sales”.</p><h3>Now, let’s explore iterating functions: a group of DAX functions that employ calculations row by row, typically denoted by an ‘X’ at the end. In this context, the ‘X’ signifies ‘expression’.</h3><h3>9. SUMX</h3><p><strong>It calculates the sum of an expression evaluated individually for every row within the table.</strong></p><p><strong>Sintax:</strong></p><p><em>SUMX(&lt;table&gt;, &lt;expression&gt;)</em></p><p><strong>Example:</strong></p><pre>Total Profit= SUMX(Sales, Sales[Revenue]- Sales[Cost])</pre><p>This expression calculates the total profit by iterating over each row in the Sales table, subtracting the cost from the revenue, and then summing up the profit for all rows. It’s worth noting that we achieve this without creating an intermediary column for profit.</p><h3>10. AVERAGEX</h3><p>It computes the arithmetic mean of a set of expressions evaluated over a table.</p><p><strong>Sintax:</strong></p><p><em>AVERAGEX(&lt;table&gt;, &lt;expression&gt;)</em></p><p><strong>Example:</strong></p><pre>Average Revenue= AVERAGEX(Sales, Sales[Price] * Sales[Quantity])</pre><p>This expression performs a row-by-row calculation within the specified table (Sales), multiplying the price and quantity for each transaction to determine the revenue. It then sums up these individual revenues and calculates the average revenue.</p><h3>11. COUNTX</h3><p><strong>It provides the count of rows from an expression that evaluates to a non-blank value.</strong></p><p><strong>Sintax:</strong></p><p><em>COUNTX(&lt;table&gt;, &lt;expression&gt;)</em></p><p><strong>Example:</strong></p><pre>COUNTX(Sales, [Price])</pre><p>This example calculates the number of rows in the Sales table where the Price column contains a non-blank value.</p><h3>In Power BI, logic functions are used to evaluate conditions and perform logical operations on data.</h3><h3>12. IF</h3><p><strong>Checks a condition, and returns one value if it is true; otherwise, it returns a second value.</strong></p><p><strong>Sintax:</strong></p><p><em>IF</em>(&lt;logical_test&gt;, &lt;value_if_true&gt;[, &lt;value_if_false&gt;])</p><p><strong>Example:</strong></p><pre>Price_Clasification= IF(Sales[Price] &gt; 100, &quot;high&quot; ,&quot;low&quot;)</pre><p>This expression uses conditional logic to classify prices as “high” or “low” based on whether they are greater than 100 or not.</p><h3>13. AND</h3><p><strong>Checks whether both arguments are TRUE and yields TRUE if both are</strong> <strong>TRUE; otherwise, it yields FALSE.</strong></p><p><strong>Sintax:</strong></p><p>AND(&lt;logical1&gt;,&lt;logical2&gt;)</p><p><strong>Example:</strong></p><pre>=IF(AND(8&gt;1, 2&lt;4), &quot;all true&quot;,  &quot;not all true&quot;)</pre><h3>14. OR</h3><p><strong>Checks whether at least one argument is TRUE to return TRUE. Returns FALSE only if both arguments are FALSE.</strong></p><p><strong>Sintax:</strong></p><p>OR(&lt;logical1&gt;,&lt;logical2&gt;)</p><p><strong>Example:</strong></p><pre>=IF(OR(8&gt;1, 6&lt;4), &quot;at least one true&quot;, &quot;all false&quot;)</pre><h3>15. SWITCH</h3><p>It evaluates an expression against various values and returns one of possible results. This function can be used, for example, instead of using multiple nested IF statements.</p><p><strong>Sintax:</strong></p><p>SWITCH(&lt;expression&gt;, &lt;value&gt;, &lt;result&gt;[, &lt;value&gt;, &lt;result&gt;]…[, &lt;else&gt;])</p><p><strong>Example:</strong></p><pre>Price_Clasification = SWITCH(<br>  TRUE(), <br>  Sales[Price] &gt; 100,&quot;high&quot;,<br>  Sales[Price] &gt; 80, &quot;not so high&quot;,<br>  Sales[Price] &gt; 60, &quot;ok&quot;, <br>  &quot;low&quot;<br>)</pre><p>A nesded IF would be like:</p><pre>Price_Clasification = IF(Sales[Price] &gt; 100, &quot;high&quot;, <br>  IF(Sales[Price] &gt; 80, &quot;not so high&quot;, <br>  IF(Sales[Price] &gt; 60, &quot;ok&quot;, <br>  &quot;low&quot;<br>)))</pre><p><strong>Another example:</strong></p><pre>Discount = SWITCH(<br>  [Category], <br>  &quot;Tech&quot;, 0.10,<br>  &quot;Books&quot;, 0.20<br>)</pre><p>This expression uses the SWITCH function to determine the discount based on the category of a product. If the category is “Tech”, it applies a discount of 10%. If the category is “Books”, it applies a discount of 20%</p><blockquote>You may have noticed that these examples primarily involve measures, with the exception of DIVIDE, IF, and SWITCH, which were used to construct calculated columns. But why create measures, such as the sum of quantity, when we can simply drag and drop the column into an aggregation within a visualization for implicit calculation? Measures, being explicit calculations, can reduce confusion by employing custom functions. Moreover, measures offer the advantage of reusability and can be nested within other measures. For instance, consider the scenario where you want to bring a calculated column , like Profit Margin%, to the report level aggregating it . The values will be probably incorrect. In such cases, creating a measure becomes necessary.</blockquote><h3>In Power BI, filter functions controll the context for calculations and data presentation.</h3><h3>16. CALCULATE</h3><p><strong>A very used function! It evaluates an expression in a modified filter context. In other words, allows calculations with conditions.</strong></p><p><strong>Sintax:</strong></p><p>CALCULATE(&lt;expression&gt;[, &lt;filter1&gt; [, &lt;filter2&gt; [, …]]])</p><p><strong>Example:</strong></p><pre>= CALCULATE(SUM(Sales[Quantity]), Sales[Category]=&quot;Tech&quot;)</pre><p>This expression calculates the total quantity of sales for products categorized as “Tech”.</p><h3>17. FILTER</h3><p>It returns a table, that is a subset of another table or expression.</p><p><strong>Sintax:</strong></p><p>FILTER(&lt;table&gt;, &lt;filter&gt;)</p><p><strong>Example:</strong></p><pre>= FILTER(Sales, Sales[Category]= &quot;Tech&quot;)</pre><p>FILTER is commonly employed within functions like CALCULATE to enable more intricate filtering logic, such as utilizing other measures for defining filter conditions.</p><p><strong>Example:</strong></p><pre>= CALCULATE(COUNT(Sales[ID]), FILTER(Sales, Sales[Price]&gt;[Mean Price])</pre><h4>Note that the following three functions (which begin with “ALL”) are associated with the concept of removing filters.</h4><h3>18. ALL</h3><p><strong>Returns all the rows in a table, or all the values in a column, without considering any filters that may be active. Commonlly this function is used with CALCULATE.</strong></p><p><strong>Sintax:</strong></p><p>ALL( [&lt;table&gt; | &lt;column&gt;[, &lt;column&gt;[, &lt;column&gt;[,…]]]] )</p><p><strong>Example:</strong></p><p>Why would we need to remove a filter? Consider the report level: Imagine you have a matrix with products listed on rows and the sales amount as values. The ALL function enables the creation of a fixed total column in this matrix, facilitating precise calculations in relation to the grand total.</p><pre>TotalSalesAmount = CALCULATE([Revenue], ALL(Sales))</pre><p>This measure calculates the total revenue for all products, disregarding any filters applied to the Sales table. It ensures that the total remains constant, enabling calculations relative to the grand total.</p><pre>% SalesCategory = [SalesAmount] / [TotalSalesAmount]</pre><h3>19. ALLSELECTED</h3><p><strong>Returns all the rows in a table, but keeps explicit filters and contexts other than row and column filters.</strong></p><p><strong>Sintax:</strong></p><p>ALLSELECTED([&lt;tableName&gt; | &lt;columnName&gt;[, &lt;columnName&gt;[, &lt;columnName&gt;[,…]]]] )</p><p><strong>Example:</strong></p><pre>TotalSalesAmount = CALCULATE([SalesAmount], ALLSELECTED[Sales])</pre><p>Using ALLSELECTED, the measure will not ignore the filtering done by a slicer, for example.</p><h3>20. ALLEXCEPT</h3><p><strong>Removes all context filters except filters applied to specified columns.</strong></p><p><strong>Sintax:</strong></p><p>ALLEXCEPT(&lt;table&gt;,&lt;column&gt;[,&lt;column&gt;[,…]])</p><p><strong>Example:</strong></p><pre>TotalSalesAmount = CALCULATE([SalesAmount], ALLEXCEPT(Sales, Sales[Category]))</pre><h3>21. EARLIER</h3><p><strong>This function, mostly used in the context of calculated column, gets the current value of the column in an outer evaluation pass of the mentioned column</strong></p><p><strong>Sintax:</strong></p><p>EARLIER(&lt;column&gt;, &lt;number&gt;)</p><p><strong>Example:</strong></p><pre>= CALCULATE([Total Sale], <br>            FILTER(Sales, <br>                   EARLIER(Sales[Date])&gt;=Sales[Date]))</pre><p>In this example, the CALCULATE function is used to calculate a cumulative total ([Total Sale]). The FILTER function filters the Sales table based on a condition where the date in the current row (retrieved using EARLIER) is greater than or equal to the date in each row of the Sales table. If the condition is met, the row is included in the calculation. This process is repeated for each row, resulting in a cumulative total.</p><h3>Table functions in Power BI are functions that operate on entire tables or generate new tables based on specific criteria.</h3><h3>22. DISTINCT</h3><p><strong>Generates a single-column table comprising unique values extracted from a specified column. Duplicate values are eliminated.</strong></p><p><strong>Sintax:</strong></p><p>DISTINCT(&lt;column&gt;)</p><p><strong>Example:</strong></p><pre>= DISTINCT(Sales[Store])</pre><p>This expression returns the distinct store names present in the “Sales” table.</p><h3>23. VALUES</h3><p><strong>If the input parameter is a column name, the function returns a single-column table containing the unique values extracted from the specified column. If the input parameter is a table name, returns the rows from the specified table, preserving duplicated rows. A BLANK value (column input) or a BLANK row (table input) can be added.</strong></p><p><strong>Sintax:</strong></p><p>VALUES(&lt;TableNameOrColumnName&gt;)</p><p><strong>Example:</strong></p><pre>= VALUES(Sales[Store])</pre><p>This expression returns the distinct store names present in the “Sales” table. However, if there is a blank value in the Store column, it will also be included in the resulting table.”</p><h3>24. USERELATIONSHIP</h3><p><strong>This function specifies the relationship to be used in a specific calculation</strong></p><p><strong>Sintax:</strong></p><p>USERELATIONSHIP(&lt;columnName1&gt;,&lt;columnName2&gt;)</p><p><strong>Example:</strong></p><pre>= CALCULATE(COUNTROWS(EmployeeBase),<br>            EmployeeBase[ResignationDate]&lt;&gt; BLANK(),<br>            USERELATIONSHIP(EmployeeBase[ResignationDate]), Calendar[Date]))</pre><p>In this example, USERELATIONSHIP is used to specify a relationship different from the default relationship between HiringDate and Calendar Date.</p><h3>25. RELATED</h3><p><strong>This function returns a related value from another table.</strong></p><p><strong>Sintax:</strong></p><p>RELATED(&lt;column&gt;)</p><p><strong>Example:</strong></p><pre>Revenue = RELATED(Product[Price])*Sales[Quantity]</pre><p>This example calculates the Revenue by multiplying the unit price (retrieved from the Product table) by the quantity sold (from the Sales table).</p><h3>26. SELECTCOLUMN</h3><p>I returns a table with selected columns from a given table or table expression.</p><p><strong>Sintax:</strong></p><p>SELECTCOLUMNS(&lt;Table&gt;, [&lt;Name&gt;], &lt;Expression&gt;, &lt;Name&gt;], …)</p><p><strong>Example:</strong></p><pre>= SELECTCOLUMNS(Sales, <br>                &quot;Revenue&quot;, Sales[Price]*Sales[Quantity])</pre><p>This expression creates a new table by selecting specific columns from the Sales table while also calculating the ‘Revenue’ column through multiplication. SELECTCOLUMNS and ADDCOLUMNS share similar syntax. However, SELECTCOLUMNS creates a new table with selected columns, while ADDCOLUMNS adds a new column to the original table or table expression.</p><h3>27. SUMMARIZE</h3><p><strong>This function generates a summary table containing the requested totals across specified groups.</strong></p><h4><strong>Sintax:</strong></h4><p>SUMMARIZE (&lt;table&gt;, &lt;groupBy_columnName&gt;[, &lt;groupBy_columnName&gt;]…[, &lt;name&gt;, &lt;expression&gt;]…)</p><p><strong>Example:</strong></p><pre>= SUMMARIZE(Sales, <br>            Sales[Store], <br>            &quot;Total Revenue&quot;, SUM(Sales[Revenue])</pre><h3>Time to talk about Time … Intelligence functions.</h3><h3>28. DATEIFF</h3><p><strong>Calculates the time interval between two dates.</strong></p><p><strong>Sintax:</strong></p><p>DATEDIFF(&lt;Date1&gt;, &lt;Date2&gt;, &lt;Interval&gt;)</p><p><strong>Example:</strong></p><pre>= DATEDIFF(Sales[OrderDate], Sales[DeliveryDate], DAY)</pre><h3>29. DAY</h3><p><strong>Returns the day of the month (from 1 to 31).</strong></p><p><strong>Sintax:</strong></p><p>DAY(&lt;date&gt;)</p><p><strong>Example:</strong></p><pre>= DAY([OrderDate])</pre><h3>30. MONTH</h3><p><strong>Returns the month of the date as a number (from 1 to 12).</strong></p><p><strong>Sintax:</strong></p><p>MONTH(&lt;datetime&gt;)</p><p><strong>Example:</strong></p><pre>= MONTH(Sales[OrderDate])</pre><h3>31. DATEADD</h3><p><strong>It produces a table containing a column of dates that have been shifted either forward or backward in time by the specified number of intervals.</strong></p><p><strong>Sintax:</strong></p><p>DATEADD(&lt;dates&gt;,&lt;number_of_intervals&gt;,&lt;interval&gt;)</p><p><strong>Example:</strong></p><pre>= DATEADD(Calender[Date], -1, month)</pre><p>This example would return dates of one month before the dates in Calender[OrderDate]. But DATEADD function never comes alone this way, it comes with functions like CALCULATE, to allow comparative analysis between time periods.</p><pre>= CALCULATE([Total Revenue], DATEADD(Calender[Date], -1, month))</pre><h3>32. TOTALYTD</h3><p><strong>Evaluates the year-to-date value of the expression in the current context.</strong></p><p><strong>Sintax:</strong></p><p>TOTALYTD(&lt;expression&gt;,&lt;dates&gt;[,&lt;filter&gt;][,&lt;year_end_date&gt;])</p><p><strong>Example:</strong></p><pre>= TOTALYTD([Total Revenue], Calender[Date])</pre><p>Calculates the year running total of sales.</p><h3>33. TOTALMTD</h3><p><strong>Evaluates the month-to-date value of the expression in the current context.</strong></p><p><strong>Sintax:</strong></p><p>TOTALMTD(&lt;expression&gt;,&lt;dates&gt;[,&lt;filter&gt;][,&lt;year_end_date&gt;])</p><p><strong>Example:</strong></p><pre>= TOTALMTD([Total Revenue], Calender[Date])</pre><p>Calculates the year running total of sales.</p><h3>Familiarity with text functions empowers Power BI users to tackle diverse data challenges.</h3><h3>34. FORMAT</h3><p><strong>Converts a value to text in the especific format.</strong></p><p><strong>Sintax:</strong></p><p>FORMAT(&lt;value&gt;, &lt;format_string&gt;[, &lt;locale_name&gt;])</p><p><strong>Example:</strong></p><pre>FORMAT( 10.1, &quot;Percent&quot;)</pre><h3>35. LEFT</h3><p><strong>Returns a specified number of characters from the start of a text string.</strong></p><p><strong>Sintax:</strong></p><p>LEFT(&lt;text&gt;, &lt;num_chars&gt;)</p><p><strong>Example:</strong></p><pre>= LEFT(Sales[Product], 5)</pre><p>This expressions returns the first five characters of each product name, which could be a code, for example.</p><h3>36. RIGHT</h3><p><strong>This function returns the last(s) character(s) in a text string — based on a specified number of characters.</strong></p><p><strong>Sintax:</strong></p><p>RIGHT(&lt;text&gt;, &lt;num_chars&gt;)</p><p><strong>Example:</strong></p><pre>= RIGHT(Sales[Product], 5)</pre><h3>37. LOWER</h3><p><strong>It converts all letters in a text string to lowercase</strong></p><p><strong>Sintax:</strong></p><p>LOWER(&lt;text&gt;)</p><p><strong>Example:</strong></p><pre>= LOWER(Sales[Product])</pre><h3>38. UPPER</h3><p><strong>It converts all letters in a text string to uppercase</strong></p><p><strong>Sintax:</strong></p><p>UPPER(&lt;text&gt;)</p><p><strong>Example:</strong></p><pre>= UPPER(Sales[Product])</pre><h3>39. TRIM</h3><p><strong>It eliminates all spaces from the text except for single spaces that separate words.</strong></p><p><strong>Sintax:</strong></p><p>TRIM(&lt;text&gt;)</p><p><strong>Example:</strong></p><pre>= TRIM(Sales[Product])</pre><h3>40. CONCATENATE</h3><p><strong>This function joins two text strings into one text string.</strong></p><p><strong>Sintax:</strong></p><p>CONCATENATE(&lt;text1&gt;, &lt;text2&gt;)</p><p><strong>Example:</strong></p><pre>= CONCATENATE(Sales[FirstName], Sales[LastName])</pre><p><strong>And that’s it! Thank you for reading.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=890abd424578" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Reasons to Love Excel PivotTables]]></title>
            <link>https://medium.com/@raqueldouradoc/5-reasons-to-love-excel-pivottables-d8e06d5d6942?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8e06d5d6942</guid>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[pivot-tables]]></category>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 00:01:56 GMT</pubDate>
            <atom:updated>2024-03-11T00:01:56.311Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PmOM2AEey-Z00rP0" /><figcaption>Photo by <a href="https://unsplash.com/@michaelrfenton?utm_source=medium&amp;utm_medium=referral">Michael Fenton</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Excel PivotTable is a powerful tool for data analysis, enabling users to efficiently summarize and analyze datasets. Here are five compelling reasons to incorporate them into your workflow:</p><h3>Reason 1: Simplicity</h3><p>PivotTables have a user-friendly interface, making them accessible to users of all skill levels. With their intuitive design and integration of click, drag, and drop, tasks such as data summarization, organization, and analysis become effortlessly efficient.</p><p><strong><em>Let’s quickly review how to build a PivotTable in Excel:</em></strong></p><p><em>1- Go to the “Insert” tab on the Excel ribbon and click “PivotTable”. A dialog box will appear, prompting you to select the range of data you want to analyze and where you want the PivotTable to be placed (e.g., a new worksheet or existing worksheet).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*6eMDopRgcfecuLVukQx86Q.png" /><figcaption>Image by author</figcaption></figure><p><em>2. After creating the PivotTable, you’ll see the PivotTable Fields List pane. Drag and drop the fields you want to analyze into the Rows, Columns, Values, or Filters area. The PivotTable below uses the field “Store” in Rows area and “Quantity” in Values area.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*fA4UxG16-1m9nClbrdikRw.png" /><figcaption>Image by author</figcaption></figure><h3>Reason 2: Aggregation and Summarization</h3><p>While the term summarization encompasses the process of organizing, condensing, and presenting data, aggregation refers to calculations. Some examples of aggregation in PivotTable are the sum of values, average, count, unique count, min, max, and percentage.</p><p>By default, Excel will summarize the values using the “Sum” function, but it is possible to customize how the values are summarized by clicking on the dropdown arrow next to the value field in the PivotTable, selecting “Value Field Settings,” and choosing the desired summary function (e.g., sum, average, count, etc.). Below, continuing the previous example, “Max of Price” is an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*btnLAKLynxynKwxXCNbPuw.png" /><figcaption>Image by author</figcaption></figure><h3>Reason 3: Data Cleaning</h3><p>It’s possible to use PivotTables indirectly for certain data cleaning tasks, such as identifying missing data and duplicated information. While summarizing data, empty cells or unusual entries can lead to errors in PivotTables, underscoring the need for further investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*mRSQLWHgnI8OplYVC7gT5w.png" /><figcaption>Image by author</figcaption></figure><p>By summarizing data and analyzing the count of unique records, some duplicates may become apparent. Once identified, users can decide how to handle them. For instance, in the example below, we can observe how sorting the “id_transaction” count from largest to smallest efficiently reveals duplicated transaction numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*Cz9wgeOLB6wSNIbVUkkuJA.png" /><figcaption>Image by author</figcaption></figure><h3>Reason 4: Slicers</h3><p>Utilizing slicers in Excel PivotTables allows for data segmentation, breaking down the dataset and enabling more targeted analysis and insights.</p><p><em>To access slicers for data segmentation, begin by selecting the PivotTable and then navigate to the “PivotTable Analyze” tab on the Excel ribbon. From there, locate and click on the “Insert Slicer” option. This action will trigger a dialog box to appear, presenting all the fields available in your PivotTable. You can then choose the desired fields for segmentation by checking the corresponding boxes. After making your selections, simply click “OK” to automatically insert slicers for the chosen fields.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*CMCse1PMQ8Vgi9YPZAa38w.png" /><figcaption>Image by author</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*3qUtPy321QK5J9jwvFsi7g.png" /><figcaption>Image by author</figcaption></figure><h3>Reason 5: Calculated Fields</h3><p>Calculated fields allow users to perform custom calculations within PivotTables without altering the original dataset. This functionality enables the creation of meaningful metrics or Key Performance Indicators (KPIs) directly from the PivotTable analysis. Additionally, calculated fields are updated whenever the underlying data in the PivotTable changes, ensuring that the analysis remains current and accurate.</p><p><em>To create a calculated field, select the PivotTable and navigate to the “PivotTable Analyze” tab on the Excel ribbon and select “Fields, Items &amp; Sets” &gt; “Calculated Field”. In the “Insert Calculated Field” dialog box, provide a name for your calculated field and enter the formula. Click “OK” to create the calculated field, which will now appear in the PivotTable Fields pane.</em></p><p>In the following example, a calculated field for Average Ticket is inserted:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*9C2FovTTACHZWYjyBd77PQ.png" /><figcaption>Image by author</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*qF8j8dXu71rHxqx3tar1UQ.png" /><figcaption>Image by author</figcaption></figure><p>In conclusion, Excel PivotTables offer a wealth of benefits that empower users to streamline their data analysis processes and unlock valuable insights from their datasets.</p><p><strong>So why wait?</strong></p><p>Start using PivotTables today and take your data analysis skills to the next level.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8e06d5d6942" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Confusion to Clarity: Understanding Row and Filter Contexts for Effective Analysis]]></title>
            <link>https://medium.com/@raqueldouradoc/from-confusion-to-clarity-understanding-row-and-filter-contexts-for-effective-analysis-ddf2e1e74661?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddf2e1e74661</guid>
            <category><![CDATA[row-context]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[filter-context]]></category>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 10:37:43 GMT</pubDate>
            <atom:updated>2024-03-03T10:37:43.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ph_MGdeS9fTY7Oc_" /><figcaption>Photo by <a href="https://unsplash.com/@johnishappysometimes?utm_source=medium&amp;utm_medium=referral">John Schnobrich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Understanding the concepts of row context and filter context in Power BI is essential for effectively leveraging this tool. While it may seem confusing at first, grasping these contexts is crucial for optimizing your data analysis and visualization processes.</p><p>Failing to understand row and filter context in Power BI can lead to several risks, such as inaccurate analysis or misinterpretation of data. Errors in the analytical process or misunderstandings about the meaning of the data can result in incorrect insights and decisions based on faulty information.</p><h3><strong>Now, let’s break down the key difference, starting with the simplest one: the Row Context.</strong></h3><p>In a row context, calculations are performed row by row. A common illustration of row context in practice is with calculated columns, where calculations are applied to each row individually. The row context is inherent to calculated columns. Below is an example of calculated column:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*rG_HKRq6U5a9wA5Dbn9EQQ.png" /><figcaption>Image by author</figcaption></figure><p>When creating measures, row context can also be established using iterators, such as the SUMX formula, which iterates over each row of data to execute calculations. The following example calculates the Total Revenue using a measure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*OGfG5CC2sCSJPBGIt6MIZQ.png" /><figcaption>Image by author</figcaption></figure><h3><strong>What about Filter Context? When does it occur?</strong></h3><p>Filter context arises when filters are applied to the data. Filters can be applied at different levels within a Power BI report, including the Report, Page, and Visual-Levels. These filters can be applied explicitly, using slicers or filters, or implicitly, through interactions with visualizations.</p><p>The key point to understand this context is to understand that the calculation is done with each selection of rows filtered. In other words, this context dynamically adjusts the dataset being analyzed, determining which rows of data are included or excluded from calculations and visualizations.</p><p>For instance, consider the following example: a matrix visualization creates the filter context, and calculations are performed based on the data related to each store. In this scenario, the filter context dictates which rows of data are considered for the calculation for each store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*yHngAMIRLhRYXwVvwe4QRg.png" /><figcaption>Image by author</figcaption></figure><p>In conclusion, understanding row and filter context is crucial for maximizing the potential of Power BI as a data analysis tool. As you continue your journey with Power BI, remember the importance of row and filter context, and how they shape the way you interact with and interpret your data.</p><p><strong>Thanks for reading!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddf2e1e74661" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify Initial Data Exploration with Pandas Profiling]]></title>
            <link>https://medium.com/@raqueldouradoc/simplify-initial-data-exploration-with-pandas-profiling-5aa28ac82573?source=rss-686738840010------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aa28ac82573</guid>
            <dc:creator><![CDATA[Raquel Dourado C.]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 10:23:26 GMT</pubDate>
            <atom:updated>2024-03-03T11:57:42.444Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting a business analysis project can be challenging, especially when it involves sifting through vast amounts of data for key insights. This process can be time-consuming and daunting. However, automated exploratory analysis tools like Pandas Profiling can significantly alleviate these challenges.</p><p>The <a href="https://github.com/ydataai/ydata-profiling">ydata-profiling</a> package, formerly known as pandas-profiling, is a powerful tool for exploratory data analysis (EDA) in Python. With minimal code, it automatically generates comprehensive reports, offering valuable insights into the data’s structure, quality, and statistical properties.</p><p>These reports encompass descriptive statistics, distribution plots, correlation matrices, missing value analysis, and potential issues. Delving deep into data can yield far superior results compared to simply conducting an analysis relying on our initial assumptions.</p><p><strong>Let’s go through a simple example</strong></p><p>The installation can be done using pip or conda:</p><pre>pip install ydata-profiling</pre><p>or:</p><pre>conda install -c conda-forge ydata-profiling</pre><p>Importing libraries:</p><pre>import pandas as pd<br>from ydata_profiling import ProfileReport</pre><p>The code below generates a basic data frame using a Python dictionary. This data frame serves as a hypothetical representation of a week’s worth of sales data from an ice cream store. It includes information such as the quantity sold for each flavor, along with the corresponding date and temperature records.</p><pre>dict = {&#39;Day&#39;: [&#39;2024-01-01&#39;,&#39;2024-01-02&#39;,&#39;2024-01-03&#39;,&#39;2024-01-04&#39;,&#39;2024-01-05&#39;,&#39;2024-01-06&#39;,&#39;2024-01-07&#39;],<br>        &#39;Temperature&#39;: [107, 104, 102, 100, 98, 96, 96],<br>        &#39;Chocolate_Flavor&#39;:[45, 50, 55, 60, 65, 78, 75], <br>        &#39;Lemon_Flavor&#39;: [80,70,60,50,40,35,34],<br>        &#39;Grape_Flavor&#39;: [10,20,11,40,20,12,13]<br>       }<br> <br># building dataframe and printing<br>df = pd.DataFrame(dict)</pre><p>The data frame:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*VGAdjfEV9hIgSjOrdE7opQ.png" /></figure><p>Generating the Pandas Profile Report:</p><pre>profile = ProfileReport(df)<br>profile</pre><p><strong>The main parts of the report are: Overview, Variables, Interactions, Correlations, Missing Values, and Sample.</strong></p><h3>Overview</h3><p>The initial section provides an overview, presenting key statistics such as the number of columns and rows, the number of missing cells, and the presence of duplicated rows. Additionally, it outlines the variable types present in the dataset, along with the count of columns associated with each type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*_zZI4TKn4KPGGIDArNInIA.png" /><figcaption>Image by author</figcaption></figure><p>Transitioning to the “Alerts” tab, we encounter notifications highlighting correlations between variables, as well as alerts regarding unique values present in certain columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnsApf7-6xfH9fAUMJkcaA.png" /><figcaption>Image by author</figcaption></figure><h3>Variables</h3><p>This section provides information and basic statistics for each variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*zUJpVyQzVq878H1XMKN0Mw.png" /><figcaption>Image by author</figcaption></figure><h3>Interactions</h3><p>Here the user can choose two variables and examine the interaction between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*T9WmPI19XNPkp2QE7KArPQ.png" /><figcaption>Image by author</figcaption></figure><h3>Correlations</h3><p>In this part, it’s possible to analyze correlations with a heatmap and table. We can observe, for example, the high correlation between temperature and lemon flavor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*SezNr6jSbIxIqSujNd0ZIw.png" /><figcaption>Image by author</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*3jgwFnvkfwlI6eWSNTwVkQ.png" /><figcaption>Image by author</figcaption></figure><h3>Missing Values</h3><p>This section uses barplot and matrix to show missing values on each column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*jm5t_ioJxZIxMs8_GxmvrQ.png" /><figcaption>Image by author</figcaption></figure><h3>Sample</h3><p>To conclude, the first and last 7 rows of the data frame.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*VmcAeN0XXzu-_pUXTPmJ7w.png" /><figcaption>Image by author</figcaption></figure><p>Besides the support for tabular data, Pandas Profiling now also supports time-series data. Moreover, if you need to compare datasets — for instance, reprofiling the same data at different points to assess differences or improvements — Pandas Profiling facilitates this comparative analysis.</p><p>To sum up, maybe the most important advantage: a deep and fast understanding of the data not only reduces the risk of errors in decision-making and model-building but also empowers teams to allocate their efforts more strategically toward problem-solving.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aa28ac82573" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>