<?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 Arpita Goswami on Medium]]></title>
        <description><![CDATA[Stories by Arpita Goswami on Medium]]></description>
        <link>https://medium.com/@arpita3696?source=rss-16e31204d2a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7qE4mOcGSQZxGpLC</url>
            <title>Stories by Arpita Goswami on Medium</title>
            <link>https://medium.com/@arpita3696?source=rss-16e31204d2a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:34:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arpita3696/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[Field Parameters Simplified]]></title>
            <link>https://medium.com/@arpita3696/field-parameters-simplified-deff7a5b4923?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/deff7a5b4923</guid>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Wed, 14 Aug 2024 06:54:03 GMT</pubDate>
            <atom:updated>2024-08-14T06:54:03.439Z</atom:updated>
            <content:encoded><![CDATA[<p>In Power BI, field parameters are used to create dynamic and flexible reports by allowing users to select different fields (columns) from a data model to be displayed in visuals or used in calculations. This can be particularly useful for creating reports where the user might want to switch between different measures, dimensions, or metrics on-the-fly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2iqER3MFTDTxVQaj" /><figcaption>Photo by <a href="https://unsplash.com/@lmw_?utm_source=medium&amp;utm_medium=referral">Leah Wilson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Here’s how you can work with field parameters in Power BI:</p><p>1. <strong>Creating Field Parameters</strong></p><p>To create field parameters, follow these steps:</p><p>1. <strong>Open Power BI Desktop:</strong> Start Power BI Desktop and open your report.</p><p>2. <strong>Go to the Modeling Tab:</strong> Navigate to the “Modeling” tab on the ribbon.</p><p>3. <strong>Create a New Parameter:</strong><br> — Click on “New Parameter” and select “Field Parameter.”<br> — Name your parameter and choose the data type (usually, text or numeric).<br> — Add the fields you want to include in your parameter from your data model.</p><p>4. <strong>Configure Parameter Settings:</strong><br> — You can set the default value and specify other properties like visibility.</p><p>5. <strong>Add the Parameter to a Visual:</strong><br> — Once the parameter is created, you can drag it into your visuals. This allows you to control which field is displayed based on the parameter’s value.</p><p><strong>2. Using Field Parameters in Visuals</strong></p><p>After creating a field parameter, you can use it in various ways:</p><p>- Dynamic Measures: Use the parameter to dynamically switch between different measures in a visual. For example, a bar chart can display different metrics based on the parameter value.</p><p>- Dynamic Dimensions: Change the dimension of a visual dynamically. For example, you could switch between different time periods or categories.</p><p>3. <strong>Creating Dynamic Measures with DAX</strong></p><p>If you need to create dynamic measures based on selected fields, you can use DAX (Data Analysis Expressions) along with field parameters:</p><p>1. Create a DAX Measure:<br> — Write a DAX measure that uses the `SWITCH` function or `IF` conditions to handle different field parameters.</p><p>Example:</p><pre>DAX<br> SelectedMeasure =<br> SWITCH(<br> TRUE(),<br> [FieldParameter] = &quot;Sales&quot;, SUM(Sales[Amount]),<br> [FieldParameter] = &quot;Profit&quot;, SUM(Profit[Amount]),<br> 0<br> )</pre><p>2. <strong>Add the Measure to Visuals:</strong><br> — Use the measure in your visuals. As you change the parameter value, the measure updates accordingly.</p><p>4. <strong>Best Practices</strong></p><p>- Clear Naming: Use clear and descriptive names for parameters to make it easier for users to understand their purpose.</p><p>- Default Values: Set meaningful default values to enhance the user experience.</p><p>- Performance: Be mindful of performance, especially if you have many fields or complex calculations.</p><p>5. Examples of Use Cases</p><p>- Sales Reports: Switch between different sales metrics (e.g., total sales, average sales, sales growth) in a report.<br>- Customer Analysis: Switch between different customer attributes (e.g., age, location, purchase history) in a customer analysis report.</p><p>By utilizing field parameters effectively, you can create highly interactive and customizable reports in Power BI, providing users with the flexibility to view and analyze data from multiple perspectives.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deff7a5b4923" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QlikSense : Identifiers in Set Analysis Expressions]]></title>
            <link>https://medium.com/@arpita3696/qliksense-identifiers-in-set-analysis-expressions-01736e569adc?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/01736e569adc</guid>
            <category><![CDATA[qlikview-online-training]]></category>
            <category><![CDATA[qlik-sense]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 02:37:06 GMT</pubDate>
            <atom:updated>2024-06-17T02:37:06.482Z</atom:updated>
            <content:encoded><![CDATA[<p>Three basic identifiers:</p><p>➪ 1,</p><p>➪ $ and</p><p>➪ 1-$</p><p>◇ In Qlik Sense, an identifier is a symbol used in set analysis for controlling the scope of data to include or exclude based on the current selections. Identifiers help in specifying whether to consider all data, ignore certain selections, or use previous states, future states, alternative states or bookmarks.</p><p>To understand the use case and difference of mentioned identifiers we will consider below inline table :</p><p>Sales_Data:</p><p>LOAD * INLINE [</p><p>Region, Year, Sales</p><p>R1, 2022, 100</p><p>R1, 2023, 150</p><p>R2, 2022, 200</p><p>R2, 2023, 250</p><p>R3, 2022, 300</p><p>R3, 2023, 350</p><p>R4, 2022, 400</p><p>R4, 2023, 450</p><p>];</p><p>◇ User has applied selection on the dashboard :</p><p>Year: 2023</p><p>Region: R2</p><p>☛ Use of 1 as identifier, when user wants to get the total sales value for Region R1.They don’t want to update the measure value on any selection, developer should use 1.</p><p>Sum({1&lt;Region={“R1&quot;}&gt;}Sales)</p><p>Ignores the selection of Year 2023 and Region R2.</p><p>Result : 100 + 150 = 250 (Sum of sales for Region R1 for all years).</p><p>1 : Ignores all user selections, focusing only on the specified condition.</p><p>☛ Use of $ as identifier, when user wants to get the total sales value for Region R1, and expected to update the measure based on filter selection, developer, either should use $ or leave it blank (don’t pass identifier).</p><p>Sum({$&lt;Region={“R1&quot;}&gt;}Sales) or Sum({&lt;Region={“R1&quot;}&gt;}Sales)</p><p>Considers the selection of Year 2023 but overrides Region to be R1.</p><p>Result : 150 (Sum of sales for Region R1 in the year 2023).</p><p>$ : Respects the current selections except for the specified condition.</p><p>Important : In set expressions, Modifier &lt;Region={“R1&quot;}&gt; has higher priority to subset the data as compared to filter selection “Region: R2&quot;. Hence region modifier overrides the region filter selection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hOi7HEBVLdu4yBH-6pP3w@2x.jpeg" /><figcaption>Photo by Bram Bergers on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>☛ Use of 1-$ as identifier, when user wants to get the total sales value but measure value should exclude the values associated with applied filters, developer should use 1-$.</p><p>Sum({1-$&lt;Region={“R1&quot;}&gt;}Sales)</p><p>Considers the entire dataset excluding the current selection of Year 2023 and Region R2. Then it sums the sales for Region R1 in the resulting dataset.</p><p>Result : 100 (Sum of sales for Region R1 excluding the data influenced by the selection of Year 2023 and Region R2, but since R1 is not selected, it’s the sales for R1 that are not from 2023).</p><p>1-$ : Excludes data influenced by the current selections, then applies the specified condition.</p><p>This allows developers to control the data in measures based on selection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01736e569adc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DAX : ALL(), ALLSELECTED(), ALLEXCEPT()]]></title>
            <link>https://medium.com/@arpita3696/dax-all-allselected-allexcept-85ff3cf7bf9d?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/85ff3cf7bf9d</guid>
            <category><![CDATA[allselected]]></category>
            <category><![CDATA[allexcept]]></category>
            <category><![CDATA[all]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[dax]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 19:54:08 GMT</pubDate>
            <atom:updated>2024-04-11T19:54:08.570Z</atom:updated>
            <content:encoded><![CDATA[<h3>DAX : ALL(), ALLSELECTED(), ALLEXCEPT()</h3><p><strong>ALL(), ALLSELECTED() and ALLEXCEPT()</strong> functions, all three of them helps in working with Filters in your Power BI report. Compared all the three functionally similar yet different functions here using an example in detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f968YsLroEdrTXul" /><figcaption>Picture from <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>ALL()</strong> ignores the filters. Sometimes it becomes necessary to ignore these filters as in Power BI, measures are always affected by the filters coming through visuals (filter context). <em>Syntax: ALL(‘Table Name’) or ALL(‘Table Name’[Column Name])</em></p><p><strong>ALLSELECTED() </strong>ignores the filters coming from the same visual in which the measure calculated using ALLSELECTED() is used. It is typically used as a CALCULATE modifier. <em>Syntax: ALLSELECTED(‘Table Name’) or ALLSELECTED(‘Table Name’[Column Name])</em></p><p><strong>ALLEXCEPT()</strong> ignores the filters from the table specified but not from columns that are passed as parameters to this function. It is a bit syntactically different from ALL() and ALLSELECTED() functions as the Table name is passed as the first parameter. <em>Syntax: ALLEXCEPT(‘Table Name’, ‘Table Name’[Column Name/s])</em></p><p>Lets take an example to understand these definintions better. We have a dataset consisting of four Tables namely <strong>DimCustomer, DimPromotion, DimProduct, FactInternetSales.</strong> FactInternetSales table is the fact table. You can have a look at the data model below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*XuYLwbDKeEphQRB_3i1X7A.png" /></figure><p>Now, lets create measures using all the three above mentioned functions.</p><pre>#Without using ALL(), ALLSELECTED(), ALLEXCEPT()<br>Sales = SUM(FactInternetSales[SalesAmount])</pre><pre>#Using ALL()<br>Sales All Fact Table = <br>CALCULATE(<br>    [Sales],ALL(FactInternetSales)<br>)</pre><pre>#Using ALLSELECTED()<br>Sales AllSelected Fact Table = <br>CALCULATE(<br>    [Sales],ALLSELECTED(FactInternetSales)<br>)</pre><pre>#Using ALLEXCEPT()<br>Total Sales Except Gender = CALCULATE(<br>    SUM(FactInternetSales[SalesAmount]),<br>                ALLEXCEPT(DimCustomer, DimCustomer[Gender]<br>                )<br>)</pre><p>Now, let’s create a table in the report view of Power BI Desktop and use all these four measures as the columns</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*r7P5dmPwfF7-xiom3zHsww.png" /></figure><p>The column <strong>EnglishEducation</strong> is from the table <strong>DimCustomer</strong>. If you notice, the <strong>Sales</strong> column is affected by the filter context coming from the same visual, that is from the column <strong>EnglishEducation </strong>as it is created by not using any of <strong>ALL(), ALLSELECTED() </strong>and <strong>ALLEXCEPT() </strong>functions. So, for each row, eg. for Bachelors it shows Sales for Bachelors in the same row and at the end it shows Total Sales adding up all the individual Sales.</p><p><strong>Sales All Fact Table </strong>column is unaffected by the Filter context coming from the same visual in each row, so it is shwing the same value 2,93,58,677.22. This measure uses ALL() and thus no filters work on these measures.</p><p><strong>Sales AllSelected Fact Table </strong>column is unaffected by the Filter context coming from the same visual in each row, so it is shwing the same value 2,93,58,677.22. But, it will get affected when we apply filters using slicers i.e. filters coming from the same visual wont affect these measures using ALLSELECTED() but filters coming from other visuals will change the values of this column. We shall see this in some time.</p><p><strong>Total Sales Except Gender</strong> column is unaffected by the Filter context coming from the same visual in each row, so it is shwing the same value 2,93,58,677.22. But, it will get affected when we apply filters using slicers i.e. filters coming from the same visual wont affect these measures using ALLEXCEPT() but filters coming from other visuals will change the values of this column. We shall see this in some time.</p><p>Now, adding four slicers to the same sheet consisting of a column each from the four available tables i.e. <strong>DimCustomer, DimPromotion, DimProduct, FactInternetSales. </strong>As you can see in the image below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pF8OMmVt12URU9I6iqiJHg.png" /></figure><p>As none of the slicers are selected now, so there is no change in the values of the table that we have created. Now lets select any option from the <strong>Color </strong>slicer. The column <strong>Color </strong>comes from the table <strong>DimProduct.</strong> Selecting Yellow from Color slicer,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8l8AexCCT4hu2OTdIupgCw.png" /></figure><p>If you notice, except for the column <strong>Sales All Fact Table</strong> which uses <strong>ALL()</strong> function all the other column’s values have changes. The measures which use <strong>ALLSELECTED()</strong> and <strong>ALLEXCEPT()</strong> get affected by filters from external visuals but not from the same visuals. Now, unselecting <strong>Yellow </strong>from <strong>Color </strong>slicer and selecting <strong>M </strong>from <strong>Gender, </strong>Gender column is from DimCustomer table,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fY_O86IA_2UGRzZMJGXkNg.png" /></figure><p>As you can see the values changed again according to the selection, which is different from the previous selection but the <strong>Sales All Fact Table </strong>column remains the same as <strong>ALL()</strong> function is used. We see similar results when we select any option from <strong>EnglishPromotionName </strong>slicer. The <strong>EnglishPromotionName </strong>column is from <strong>DimPromotion </strong>table.</p><p>Now, lets check what happens when we select any option from <strong>EnglishEducation </strong>slicer. Since, this column is also used in the table but the tables filter context isn’t affectiong any of the three columns where we have used ALL(), ALLSELECTED() and ALLEXCEPT().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ehDd8f3bMN01IA63hVrKlA.png" /></figure><p>Here, the column<strong> Total Sales Except Gender</strong> does not change as it uses <strong>ALLEXCEPT()</strong> function unlike the Sales AllSelected Fact Table column which uses <strong>ALLSELECTED()</strong> function. In the measure <strong>Total Sales Except Gender </strong>we have used<strong> ALLEXCEPT() </strong>and passed the Parameter as <strong>Gender </strong>column of <strong>DimCustomer </strong>table. So when we select an option from the <strong>Gender </strong>slicer too then we can see a change in the value of the column <strong>Total Sales Except Gender.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K72iZ9Hiop3OfhhZ0I4jFQ.png" /></figure><p>These functions are mainly used to calculated percentage values out of the total values by creating the measure, e.g.,</p><pre>#Sales%<br>Sales % = DIVIDE(Sales, Sales All Fact Table)</pre><p>On creating this measure, we see this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cbf9D0iL1wQ9MwM8B-4hrg.png" /></figure><p>So, you can clearly see that how we can use all these above functions according to our various business requirements.</p><p>Few characteristics of ALL() function:</p><ol><li>ALL() accepts a table as input and also gives a table as an output.</li><li>You can create a copy of an entire table or some specific column/s of a table by using the ALL() function.</li><li>ALL() cannot be directly used in a measure, it can only be used in some other function as a Filter Context modifier.</li></ol><p>We have come to the end of this article which gives an understanding about some popular DAX functions which are seemingly easy but a bit complex to get. Hope this article will be of great help to you in times of need.</p><p>Please let me know by your valuable claps and responses in case I am able to help you.</p><p>Happy reading! Good Day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85ff3cf7bf9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI Scenario Based Question]]></title>
            <link>https://medium.com/@arpita3696/power-bi-scenario-based-question-f22dc6681a9a?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f22dc6681a9a</guid>
            <category><![CDATA[power-bi-desktop]]></category>
            <category><![CDATA[dax]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[power-bi-tutorials]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Wed, 10 Apr 2024 17:45:31 GMT</pubDate>
            <atom:updated>2024-04-10T17:45:31.806Z</atom:updated>
            <content:encoded><![CDATA[<p>Case: You are working as a Data Analyst in a Retail Organization, and you have been assigned with a Power BI Dashboard where your task is to create and display a measure that calculates the average sales revenue per day for the given month’s data. However, there were no sales during the weekends as the stores of the organization were closed during weekends so you would have to exclude the weekend days i.e. Saturday and Sunday from your calculation. How would you approach this using DAX?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*CfW3bsqkgS6rfFYGEfrQVQ.png" /></figure><p>In this case, I have a table called ‘Sales’ consisting of two columns ‘Date’ and ‘Revenue’ as shown below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*GJ1dRQaDXlVKo3iacqcOmw.png" /><figcaption><strong>Sales</strong> Table with columns <strong>Date</strong> and <strong>Revenue</strong></figcaption></figure><p>First we will calculate the Total Revenue:</p><p>TotalRevenue = CALCULATE( SUM( ‘Sales’[Revenue]))</p><p>Then we have to count the weekdays:</p><p>Weekdays = COUNTX( FILTER(‘Sales’, WEEKDAY(’Sales’[Date].[Date]) &lt;&gt; 1 &amp;&amp; WEEKDAY( ‘Sales’[Date].[Date]) &lt;&gt; 7), 1)</p><p>In this above expression, we are filtering only those rows from the ‘Sales’ table which have sales for only weekdays i.e. Monday to Friday only. We are not including the rows consisting of the revenue for weekend days i.e. Saturday and Sunday.</p><p>So, the WEEKDAY() function calculates the day number of a week from a given date. It assumes Sunday as 1 and Saturday as 7 which is why we are checking in the above expression if the weekday is not equal to 1 and 7 then count the number of rows using the COUNTX function which iterates through each row of the filtered table produced by the FILTER function.</p><p>Here is my measure,</p><pre>Average Sales Revenue per Weekday =<br>VAR  TotalRevenue = CALCULATE( SUM( ‘Sales’[Revenue]))<br>VAR Weekdays = COUNTX( FILTER(‘Sales’, WEEKDAY(’Sales’[Date].[Date]) &lt;&gt; 1 &amp;&amp;<br> WEEKDAY( ‘Sales’[Date].[Date]) &lt;&gt; 7), 1)<br>RETURN<br> DIVIDE(TotalRevenue, Weekdays)</pre><p>If you found this useful please do upvote and let me know in case you have any suggestions for the improvement of my measure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f22dc6681a9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Key DAX functions]]></title>
            <link>https://medium.com/@arpita3696/key-dax-functions-a6e0f5abdccb?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6e0f5abdccb</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-visualization-tools]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Tue, 10 Oct 2023 16:12:02 GMT</pubDate>
            <atom:updated>2023-10-10T16:12:02.544Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of data analysis, having access to accurate and reliable information is crucial. This is where information functions in DAX come into play, enabling us to extract valuable insights from our data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*Y41Cg4yebVcmekVtJFCFDw@2x.jpeg" /></figure><p>Let’s explore some key information functions and their applications:</p><p>🔹 USERNAME:</p><p>The USERNAME function retrieves the name of the currently authenticated user. It is useful for implementing security measures or customizing the user experience based on the logged-in user.</p><p>🔹 LOOKUPVALUE:</p><p>LOOKUPVALUE allows you to retrieve a value from a column in a related table. It helps in performing lookups and returning specific values based on specified conditions.</p><p>🔹 ISTEXT:</p><p>The ISTEXT function evaluates whether a given value is text or not. It returns TRUE if the value is text; otherwise, it returns FALSE. It can be handy for filtering and categorizing data based on its data type.</p><p>🔹 ISONORAFTER:</p><p>ISONORAFTER is used to determine if a value appears in a specified column after a given value. It helps in analyzing the relative order of values in a column and identifying patterns or trends.</p><p>🔹 ISODD:</p><p>ISODD evaluates whether a number is odd or even. It returns TRUE if the number is odd; otherwise, it returns FALSE. This function is beneficial when working with datasets that require odd-even analysis or segmentation.</p><p>🔹 ISNUMBER:</p><p>The ISNUMBER function checks if a value is a number. It returns TRUE if the value is a number; otherwise, it returns FALSE. It can be helpful in validating and filtering numeric data.</p><p>🔹 ISNONTEXT:</p><p>ISNONTEXT determines whether a value is non-textual. It returns TRUE if the value is non-text; otherwise, it returns FALSE. It aids in classifying and manipulating data based on its text or non-text nature.</p><p>🔹 ISLOGICAL:</p><p>ISLOGICAL checks if a value is a Boolean (TRUE or FALSE). It returns TRUE if the value is Boolean; otherwise, it returns FALSE.</p><p>🔹 ISINSCOPE:</p><p>ISINSCOPE helps determine if a column or measure is currently in the scope of the active query context. It returns TRUE if the column or measure is in scope; otherwise, it returns FALSE.</p><p>🔹 ISEVEN:</p><p>ISEVEN checks whether a number is even. It returns TRUE if the number is even; otherwise, it returns FALSE.</p><p>🔹 ISERROR:</p><p>ISERROR determines if a value is an error. It returns TRUE if the value is an error; otherwise, it returns FALSE.</p><p>🔹 ISBLANK:</p><p>The ISBLANK function checks if a value is blank or empty. It returns TRUE if the value is blank; otherwise, it returns FALSE. It helps in filtering and handling missing or empty data.</p><p>🔹 IN Operator/CONTAINSROW function:</p><p>It checks if a value is present in a specified column or table. It returns TRUE if the value is found; otherwise, it returns FALSE.</p><p>🔹 CUSTOMDATA:</p><p>CUSTOMDATA allows you to pass custom data to Power BI visuals using the Power BI Embedded APIs.</p><p>🔹 CONTAINS:</p><p>The CONTAINS function determines whether a text value contains a specific substring</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6e0f5abdccb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A question every new analyst faces: should I learn PowerBI or Tableau?]]></title>
            <link>https://medium.com/@arpita3696/a-question-every-new-analyst-faces-should-i-learn-powerbi-or-tableau-d12316f01ec9?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d12316f01ec9</guid>
            <category><![CDATA[business-analyst]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 02:23:43 GMT</pubDate>
            <atom:updated>2023-09-30T02:24:54.643Z</atom:updated>
            <content:encoded><![CDATA[<p>Your choice will form the backbone of your analytics career.</p><p>To help you decide, I’ve broken it down:</p><p>Power BI and Tableau are the most popular Business Intelligence (BI) tools available today.</p><p>According to Gartner (tech research firm) both are leaders and visionaries in the space and have been for many years.</p><p>1. Microsoft Power BI</p><ul><li>Power BI is a group of software services, apps, and connectors that work together to turn different sources of data into clear, visually engaging, and interactive insights.</li><li>One of PBIs biggest strengths is the way it integrates into the Microsoft Ecosystem.</li><li>If you already use Microsoft products, then the learning curve isn’t too steep.</li><li>There are also frequent updates and improvements due to Microsoft’s continuous investment in its products.</li></ul><p>2. Tableau</p><ul><li>Tableau products visualise data from various sources like relational databases, online analytical processing cubes, cloud databases, and spreadsheets.</li><li>It can also extract and store data in an in-memory data engine.</li><li>Tableau’s strengths sit more with its visualisation capabilities – there are more customisation and flexibility options.</li><li>While both Tableau and Power BI offer some level of analytical capabilities, Tableau tends to have more advanced statistical features and analytical functions.</li></ul><p>Benefits:</p><p>1. So, what are the benefits of PBI over Tableau?</p><ul><li>It handles complex relationships between tables and data sources better.</li><li>It can be faster and gives quick insights.</li><li>It is more user-friendly and cost-efficient.</li><li>Machine learning algorithms can also be applied to datasets easily.</li></ul><p>2. What about Tableau over PBI?</p><ul><li>PBI tends to drag slowly while handling bulk data.</li><li>Tableau can handle large volumes of data quickly.</li><li>It provides extensive features for visualising large data sets.</li><li>Tableau doesn’t limit the number of data points in visualisation.</li></ul><p>When it comes down to it, picking a tool shouldn’t be your first priority.</p><p>Your priority should be understanding why we use these tools, visualisation theory and how to deliver the best solution possible to your future users.</p><p>Choose one, get going, get good, and you can pick up the other later if needed.</p><p>The underlying knowledge will be the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*V-6-RksLkQTq6FwyHlYHlg@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d12316f01ec9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delete Vs Drop Vs Truncate – When to use which?]]></title>
            <link>https://medium.com/@arpita3696/delete-vs-drop-vs-truncate-when-to-use-which-e2abe867cd36?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2abe867cd36</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[delete]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 07:26:06 GMT</pubDate>
            <atom:updated>2023-09-13T07:26:06.337Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to deleting data in a database, you have three main methods: <strong>DELETE</strong>, <strong>DROP</strong>, and <strong>TRUNCATE</strong>. Each of these keywords has its own set of advantages and disadvantages, so it’s important to choose the right one for the specific need.</p><p>• <strong>DELETE</strong></p><p><strong>What it does?</strong></p><p><strong>DELETE</strong> lets you remove specific rows from a table based on a condition you define. For instance, you could use DELETE to eliminate all rows where the ‘Country’ column equals ‘USA’ in a table ‘Continent’. These deleted rows can be retrieved.</p><p><strong>Advantages</strong>: Provides precise control over what data is deleted as you are specifying the rows which are to be deleted using a condition.</p><p><strong>Disadvantages</strong>: Slower for large datasets due to individual row processing.</p><p><strong>When to use?</strong></p><p>Opt for DELETE when you need to selectively remove specific records while preserving the table structure.</p><p>• <strong>DROP</strong></p><p><strong>What it does?</strong></p><p><strong>DROP</strong> annihilates an entire table, including its data and structure. Once you DROP, there’s no going back. You won’t be able to retrieve the rows as well as the table structure.</p><p><strong>Advantages</strong>: Lightning-fast, erasing the entire table in a single sweep.</p><p><strong>Disadvantages</strong>: Irreversible – data is lost forever.</p><p><strong>When to use?</strong></p><p>Use DROP only when you’re absolutely sure that you no longer require any data from the table.</p><p>• <strong>TRUNCATE</strong></p><p><strong>What it does?</strong></p><p>TRUNCATE clears all rows from a table but leaves the table structure intact. You can recover data if necessary, but it’s not as fast as DROP.</p><p><strong>Advantages</strong>: Faster than DELETE and recoverable, maintaining the table structure.</p><p><strong>Disadvantages</strong>: Can’t be used with conditions, meaning you can’t selectively delete rows.</p><p><strong>When to use?</strong></p><p>Employ TRUNCATE when you need to swiftly empty a table without deleting its structure.</p><p>The choice of method hinges on your specific needs. If you want to delete specific rows, use DELETE. If you’re looking to erase an entire table with no regrets, go for DROP. And if you need a quick, non-destructive data wipe, TRUNCATE is the way to go.</p><p>Here are some tips for selecting the right method:</p><p>• Use DELETE when you need precise control over data removal while keeping the table structure intact.</p><p>• Use DROP when you’re certain you won’t need any data from the table again.</p><p>• Use TRUNCATE when you need a swift data wipe and don’t require selective removal.</p><p>Your choice of method depends on your specific needs. Understanding the strengths and weaknesses of each method empowers you to make the right decision and avoid costly mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6JmSGb-1FwnntYgRNiI6_g@2x.jpeg" /><figcaption>Photo by Sunder Muthukumaran on Unsplash</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2abe867cd36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calculating Working Days using DAX in Power BI.]]></title>
            <link>https://medium.com/@arpita3696/calculating-working-days-using-dax-in-power-bi-b7b62be1e358?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7b62be1e358</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-analytics-tools]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[dax]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Sat, 25 Mar 2023 11:39:52 GMT</pubDate>
            <atom:updated>2023-03-25T11:39:52.937Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will speak about using DAX in Power BI, how to calculate the number of Working Days in between two given dates taking into consideration the weekends and holidays if any.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*W_eMvE5wn5nuur_by-wn7A.png" /></figure><p>There can be two scenarios, either you want to create a new column for this or a measure. We will see how it can be done for each of these cases.</p><p><strong>Case 1 : Create a new Column consisting of the Working Days in between two given dates:</strong> In this case you will have a table consisting of two date columns, one for Start Date and the other for End Date. Consider the below table for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*T9L0Ycb3igFhEXeqL1u-wA.png" /><figcaption>Image 1 : Date_Table</figcaption></figure><p>The simple logic in layman terms is to calculate <em>Start Date - End Date (in Days excluding Weekends and Holidays if any). </em>Since, We can consider various set of days as weekends in Power BI as shown below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*J8MJa7Ynr1WV3awAhVGHTg.png" /><figcaption>Image 2 : Weekend Day/s Table with Index number</figcaption></figure><p>The index number adjacent to each set of Weekend Day/s is passed as a parameter during calculation.</p><p>Considering December 25 and January 1 are holidays every year and Saturday, Sunday as weekends (index number 1) are taken into consideration here. Therefore, the number of Working Days would be,</p><pre>Working_Days=<br>NETWORKDAYS(<br>  Date_Table[Start Date],<br>  Date_Table[End Date],<br>  1,<br>  {DATE(2023,12,25),DATE(2024,01,01)}<br>) </pre><p>Using the NETWORKDAYS function, gives the number of working days in between two given dates passed as the first two parameters, Start Date and End Date respectively.</p><p>The next parameter, 1 is the index number of the Weekend Days Saturday and Sunday as shown in <em>Image 2</em>.</p><p>The next and the last parameter within curly braces { } is the pre defined holiday dates which we know 25th Dec and 1st Jan, so using the DATE function we are just creating those dates here.</p><p>Below is the result obtained using the above code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*10Qobz7UDD34l-KESYeItg.png" /><figcaption>Image 3 : Result in the form of a new column</figcaption></figure><p>For the second record, Start Date : 23/12/2023 and End Date : 06/01/2024, we are getting 2 holidays, 25th Dec and 1st Jan, 2 Saturdays and 2 Sundays. So excluding these gives us 8 working days.</p><p><strong>Now, what if we have a long Holiday List??</strong></p><p>In that case we can create a separate Date Dimension Table consisting of a Date column having all the holiday dates only. Lets name this table as ‘Holiday Table’. Then my code would be,</p><pre>Working_Days=<br>NETWORKDAYS(<br>  Date_Table[Start Date],<br>  Date_Table[End Date],<br>  1,<br>  &#39;Holiday Table&#39;<br>)</pre><p><strong>Case 2 :</strong> <strong>Create a Measure which gives the number of Working Days in between two given dates: </strong>The underlying logic of the code would be exactly similar, just that we would write this in a measure now. Lets have a look at the code,</p><pre>Working Days =<br>VAR _StartDate=<br>  SELECTEDVALUE(&#39;Date_Table&#39;[Start Date])<br>VAR _EndDate =<br>  SELECTEDVALUE(&#39;Date_Table&#39;[End_Date])<br><br>RETURN<br>  NETWORKDAYS(_StartDate,_EndDate,1,&#39;Holiday Table&#39;)</pre><p>Again the result of this measure would give the number of effective Working Days, taking into consideration the weekends and holidays if any. This result can be used in any visualizations in the report and it will give the number of working days in between two dates, i.e. start date and end date.</p><p>In this manner Working Days in between two given dates can be calculated.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7b62be1e358" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What-if analysis and it’s integration into Power BI?]]></title>
            <link>https://medium.com/@arpita3696/what-if-analysis-and-its-integration-into-power-bi-3922a97dfe39?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3922a97dfe39</guid>
            <category><![CDATA[what-if-analysis]]></category>
            <category><![CDATA[power-bi-tutorials]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[dax]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Sat, 25 Mar 2023 07:29:30 GMT</pubDate>
            <atom:updated>2023-03-25T07:29:30.562Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What-if analysis refers to the process of evaluating potential outcomes based on different assumptions and scenarios.</strong></p><p>In Power BI, it’s a feature that allows users to perform data analysis by changing values in a model and observing the effects on key metrics and KPIs. Now the question arises, aren’t What-if analysis and Scenario analysis the same?</p><p>Yes, they are in most cases !!!</p><p>What-if analysis and Scenario analysis are often used interchangeably and both refer to a similar process. They refer to the practice of evaluating potential outcomes based on different assumptions and scenarios.</p><p>Essentially, they are both methods for forecasting the results of specific decisions or events and can help organizations make more informed decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MXJB6L03kYuGdQkAQLzMNA.png" /></figure><p><strong>Let me give a simple example of What-if analysis used in the sales domain using Power BI:</strong><br> <br>Suppose the business has a sales cost of $100 per unit and a selling price of $150 per unit. The profit for each unit sold is then $150 — $100 = $50.</p><p>In a what-if analysis, the sales manager can change the sales cost in Power BI to see how this would impact profit. For example, if the sales cost increases to $110 per unit, the profit would decrease to $150 — $110 = $40. The Power BI dashboard would update in real-time to show the change in profit and profit %.</p><p>This type of analysis can be useful for stakeholders as it visually represents the impact of changes in sales cost on profit. It can help the business make informed decisions about controlling costs and maximizing profit.</p><p><strong>Now the question arises what is the easiest way to go about creating a What-if analysis in Power BI …</strong><br>My simple answer would be <strong>NUMERIC PARAMETERS</strong>!!<br>Numeric parameters are very useful for such types of analysis in Power BI because they allow users to dynamically change values in a model and observe the effects on key metrics and KPIs.</p><p>For example, if a sales team wants to evaluate the impact of increasing prices on total revenue, they can adjust the value of the parameter, they can quickly see the impact on revenue, and make data-driven decisions.</p><p>This can save time and effort compared to manually changing values in a model and recalculating the results. Additionally, numeric parameters allow for more efficient and flexible What-if analysis in Power BI.</p><p>They can be easily changed and rerun, allowing users to test multiple scenarios with different inputs and assumptions.</p><p>In conclusion, numeric parameters are a key tool for conducting effective What-if analysis in Power BI. They allow users to quickly and easily evaluate the impact of different scenarios and provide valuable insights into potential outcomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3922a97dfe39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL: Alias execution in SQL]]></title>
            <link>https://medium.com/@arpita3696/sql-alias-execution-in-sql-52f0d0a5b4f4?source=rss-16e31204d2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/52f0d0a5b4f4</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Arpita Goswami]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 18:02:04 GMT</pubDate>
            <atom:updated>2023-02-14T05:30:42.267Z</atom:updated>
            <content:encoded><![CDATA[<p>Did you ever notice that aliasing a column in a <strong>SQL</strong> query using the keyword <strong>AS </strong>doesn’t work if you are using a <strong>WHERE </strong>clause in your <strong>SQL </strong>query?</p><p>In case you did notice and you know the reason why it happens, then do let me know your views on my explanation, if not then read on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*0cPeTmVDkCO4kmy54bfeOQ.png" /></figure><p>We are aware that <strong>The Order of Operation</strong> of a SQL query is as follows:</p><pre>SELECT column1, column2….<br>FROM table1 JOIN table2 ON table1.column = table2.column<br>WHERE &lt;condition&gt;<br>GROUP BY column1<br>HAVING &lt;condition&gt;<br>ORDER BY column1<br>LIMIT offset, number of rows;</pre><p>Now if you want to apply some calculations or conditions on any of the columns in the <strong>SELECT </strong>statement, you would want to alias it with an easy-to-understand name which is generally all right when you are not using a <strong>WHERE </strong>clause in your query.</p><p>But, this is not the case when you use a <strong>WHERE </strong>clause. Because <strong>Standard SQL </strong>disallows references to column aliases in a <strong>WHERE </strong>clause.</p><p>Now let us look at <strong>The Order of Execution</strong> of a SQL query so that we can understand this better. <strong>The Order of Execution</strong> is as follows:</p><pre>FROM table1 JOIN table2 ON table1.column = table2.column<br>WHERE &lt;condition&gt;<br>GROUP BY column1<br>HAVING &lt;condition&gt;<br>SELECT column1, column2<br>ORDER BY column1<br>LIMIT offset, number of rows;</pre><p>As you can see, while executing the <strong>WHERE </strong>clause the compiler is unaware of any aliases that are present in the <strong>SELECT </strong>statement, since the <strong>SELECT </strong>statement is getting executed after the <strong>WHERE </strong>clause. Thus, a restriction is imposed because when the <strong>WHERE </strong>clause is evaluated, the column value may not have been yet determined. For example, the following query is invalid:</p><pre>SELECT id, COUNT(*) AS cnt <br>FROM tbl_name<br>WHERE cnt &gt; 0 <br>GROUP BY id;</pre><p>The <strong>WHERE </strong>clause determines which rows should be included in the <strong>GROUP BY </strong>clause, but it refers to the alias of a column value that is not known until after the rows have been selected, and grouped by the <strong>GROUP BY</strong>.</p><p>A few ways in which you can use Aliases along with <strong>WHERE </strong>clause in the same query are:</p><ul><li>Using subqueries: In this case, you break your whole query into chunks in which the <strong>WHERE </strong>clause can be written in a query, and on top of that <strong>SELECT </strong>query can be written along with the aliases. Eg:</li></ul><pre>SELECT table1.column1, count(table2.column3) AS column_name<br>FROM (SELECT table1.column1, table2.column3<br>FROM table1 JOIN table2 ON table1.column4 = table2.column4<br>WHERE &lt;condition&gt;)<br>GROUP BY table1.column1;</pre><ul><li>Using <strong>CTEs</strong>: <strong>CTEs </strong>are <strong>Common Table Expressions</strong>. This also works on the similar concept of chunking your entire query into parts as shown in the below example,</li></ul><pre>WITH CTE AS (SELECT table1.column1, table2.column3<br>FROM table1 JOIN table2 ON table1.column4 = table2.column4<br>WHERE &lt;condition&gt;)<br>SELECT table1.column1, count(table2.column3) AS column_name<br>FROM CTE<br>GROUP BY table1.column1;</pre><p>This restriction is imposed mainly due to <strong>The Order of Execution </strong>of the<strong> SQL </strong>keywords<strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52f0d0a5b4f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>