<?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 Trupti Bagdai on Medium]]></title>
        <description><![CDATA[Stories by Trupti Bagdai on Medium]]></description>
        <link>https://medium.com/@trvithlani?source=rss-8f161b4ac72e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*77rtlih-ghFGwM-JOBMNVw.jpeg</url>
            <title>Stories by Trupti Bagdai on Medium</title>
            <link>https://medium.com/@trvithlani?source=rss-8f161b4ac72e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:50:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trvithlani/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[Power BI Relationships & Cardinality: A Complete Beginner Guide]]></title>
            <link>https://medium.com/@trvithlani/power-bi-relationships-cardinality-a-complete-beginner-guide-22ada471b28f?source=rss-8f161b4ac72e------2</link>
            <guid isPermaLink="false">https://medium.com/p/22ada471b28f</guid>
            <category><![CDATA[crossfilter]]></category>
            <category><![CDATA[data-cardinality]]></category>
            <category><![CDATA[power-bi-relationships]]></category>
            <dc:creator><![CDATA[Trupti Bagdai]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 16:20:37 GMT</pubDate>
            <atom:updated>2026-07-31T16:20:37.844Z</atom:updated>
            <content:encoded><![CDATA[<p>As coming from non-IT background, I must understand foundation for all the functions while learning Power BI</p><p>What queries and fields are, how important it is to organize the fields to the Query get the desired output in form of chart or KPI for the organization’s decision-making process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KvG1CirhK9E_1laV" /><figcaption>Photo by <a href="https://unsplash.com/@mjessier?utm_source=medium&amp;utm_medium=referral">Myriam Jessier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Queries act as the backbone of your report, shaping the data before it reaches your visuals. A good data model reduces confusion, improves performance, and makes your report easier to maintain. When fields are organized properly, building dashboards becomes much easier.</p><p>Here I want to describe <strong>Cardinality in Power BI</strong></p><p><strong>Which is The Foundation of Effective Data Modeling</strong></p><p>Let’s start with Star Schema</p><p>A <strong>star schema</strong> is a simple and efficient data modeling structure used in Power BI, where one central <strong>fact table</strong> is connected to multiple surrounding <strong>dimension tables</strong>. The model looks like a star — the fact table in the center and dimension tables around it.</p><p>It is the <strong>industry‑standard</strong> design because it makes reports faster, cleaner, and easier to understand.</p><p>A <strong>fact table</strong> stores the measurable business events,here in example we have a fact sales table, and dimension table are DimCustomer, DimProduct and DimDate.</p><p>These keys connect the fact table to each dimension table.</p><p>Examples:</p><ul><li><strong>CustomerKey</strong> → links to DimCustomer</li><li><strong>ProductKey</strong> → links to DimProduct</li><li><strong>DateKey</strong> → links to DimDate</li></ul><p>Foreign keys allow filters to flow correctly. When a user selects a customer or product, Power BI uses these keys to find matching rows in the fact table.</p><p>For example, these are the actual numbers you want to analyze.</p><p>Sales Amount, Discount, profit, cost, Quantity</p><p>These values are aggregated in visuals (SUM, AVERAGE, MAX, etc).</p><p>A <strong>dimension table</strong> stores descriptive information about business entities. It sits around the fact table like the points of a star. Those are Customer Key, Product key, Date Key.</p><p>This key connects to the fact table’s foreign key.</p><h3><strong>Relationships between tables</strong></h3><p>In a <strong>star schema</strong>, relationships are the <strong>connections</strong> between the central <strong>fact table</strong> and the surrounding <strong>dimension tables</strong>. They define <strong>how tables interact</strong>, <strong>how filters flow</strong>, and <strong>how Power BI calculates results</strong>.</p><p>Without correct relationships, your star schema will not work — slicers won’t filter properly, totals will be wrong, and DAX will behave unpredictably.</p><p><strong>How Relationships Work in a Star Schema</strong></p><p><strong><em>Dimension Table (1) → Fact Table (</em>) *</strong></p><p>This means: Each dimension table has <strong>unique values</strong> (primary key).</p><p>The fact table has <strong>repeated values</strong> (foreign key).</p><p>The relationship connects the PK → FK.</p><p>This is called a <strong>one‑to‑many relationship</strong>, and it is the foundation of every correct Power BI model.</p><p>For example, we have 4 tables containing their respective primary key or Foreign Key</p><p>Table –</p><p>DimCustomer</p><p>CustomerKey -Customer name — State- Address</p><p>DimProduct</p><p>ProductKey- ProductName — Category</p><p>DimDate</p><p>DateKey — Year- Quarter</p><p>FactSales</p><p>CustomerKey- ProdutKey- DateKey -TotalAMount- Quantity.Relationships:</p><p><strong>DimCustomer.CustomerKey (1)</strong> → <strong>FactSales.CustomerKey ()*</strong></p><p><strong>DimProduct.ProductKey (1)</strong> → <strong>FactSales.ProductKey()*</strong></p><p><strong>DimDate.DateKey (1) → FactSales.DateKey()*</strong></p><p>Everything works smoothly because relationships are clean and directional.</p><p><strong>Relationships are crucial in Star Schema model</strong></p><p>- Because of correct filter flow — filter must flow dimension to fact. This ensures slicers, visuals, and DAX return accurate results.</p><p>- SUM, COUNT, AVERAGE, and time intelligence functions rely on proper relationships.</p><p>- DAX formulas become simpler because the model is predictable.</p><p>- Relationships prevent: Duplicate values, Wrong totals, Circular filtering, Slow performance.</p><h3><strong>There are three kinds of relationships or cardinality between the tables, which are as follows:</strong></h3><p><strong>One-to-Many</strong></p><p>Dimension (1) → Fact (*)</p><p>This is the correct and recommended pattern.</p><p>Imagine the list of students is in DimStudent table and FactResult table contain list of subject.</p><p>So, Student is unique, but he can appear for more than one subject from result table.</p><p>Or likewise one customer has many sales orders.</p><p><strong>One-to- One</strong></p><p>Each row in Table A matches exactly one row in Table B.</p><p>And each row in Table B matches exactly one row in Table A.</p><p>Imagine at the student table every student can select only one subject as an elective subject.</p><p><strong>Many-to-many</strong></p><p>Multiple rows in Table A can match multiple rows in Table B.</p><p>And multiple rows in Table B can match multiple rows in Table A.</p><p>It’s Complex and can cause unclear filter behavior; often handled using a bridge table. Example: Students enrolled in multiple classes where each class has multiple students.</p><p><strong>Cross Filter Direction</strong></p><p>Cross filter direction controls how filters flow between two related tables in your Power BI data model. When you create a relationship (usually between a <strong>dimension table</strong> and a <strong>fact table</strong>), Power BI needs to know <strong>which table can filter the other.</strong></p><p>In a star schema, the dimension table usually filters the fact table (single direction).</p><p>When you need filters to flow both ways — especially in many‑to‑many relationships — you can enable bi‑directional filtering. Use bi‑directional filtering carefully because it can introduce ambiguity and impact performance.</p><h3><strong>Types of Cross Filter Direction</strong></h3><p><strong>Single Direction</strong></p><p>Filters flow from the dimension table → fact table meaning DimDate filters FactSales which Keeps the model clean, predictable, and fast.</p><p><strong>Both Directions (bi‑directional)</strong></p><p>Filters flow <strong>both ways </strong>meaning DimCustomer ↔ FactSales . Useful when you need filtering to work across multiple dimensions, helps when building <strong>complex reports</strong> where slicers must affect multiple related tables.</p><p>It’s used when you have <strong>many-to-many</strong> relationships, when you need a slicer to filter both tables.</p><p>To set cross filter direction you must go model view — click on relationship line -in the properties pane — Cross filter direction selects single or both.</p><p><strong>Relationship’s cardinality</strong></p><p>In Power BI Desktop model view, you can interpret a relationship’s cardinality type by looking at the indicators (1 or *) on either side of the relationship line. To determine which columns are related, select, or hover the cursor over, the relationship line to highlight the columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*6QgNPequDvhLwAFtDGaQ_A.png" /><figcaption>Screenshot by author</figcaption></figure><p><strong>Power BI Automatically Creates Relationships — But You Can Control It</strong></p><p>When you import multiple tables into Power BI, the engine tries to <strong>detect relationships automatically</strong>. It looks at column names, data types, and patterns to guess how tables should connect. For beginners, this feels convenient — but for professional data modeling, <strong>automatic relationships can sometimes create wrong or unnecessary connections</strong>.</p><p>That’s why Power BI gives you full control to <strong>disable automatic relationship creation</strong> and build your own clean, star‑schema‑based relationships.</p><p>Here are the steps to disable Auto‑Relationships</p><p>Go to File- Select Options and Settings- Click Options- Under Current File, choose Data Load- Find the section Relationships- Turn off: Autodetect new relationships after data is loaded and Autodetect relationships.</p><p>Once you disable these options, Power BI will stop creating relationships automatically, giving you full control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GcCHpRJv827F79GpmEPUsg.png" /><figcaption>Screenshot by author</figcaption></figure><p><strong>Build Relationships Manually</strong></p><p>After disabling auto‑relationships, you can create your own:</p><p>Go to <strong>Model View-</strong> Drag the key from the dimension table- Drop it onto the matching key in the fact table</p><p>Set Cardinality (usually One‑to‑Many)</p><p>Cross‑filter direction (Single direction recommended)</p><p>Active or Inactive relationship.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22ada471b28f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tableau Data Foundations(part-2)]]></title>
            <link>https://medium.com/@trvithlani/tableau-data-foundations-part-2-58be42a243ce?source=rss-8f161b4ac72e------2</link>
            <guid isPermaLink="false">https://medium.com/p/58be42a243ce</guid>
            <dc:creator><![CDATA[Trupti Bagdai]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 21:12:15 GMT</pubDate>
            <atom:updated>2026-06-05T21:12:15.919Z</atom:updated>
            <content:encoded><![CDATA[<p>After covering the detailed topics of data source, data type and data field, I am going to take you to another important topic like Dimension and Measures and Continuous and Discrete.</p><h3><strong>1.Dimensions and Measures</strong></h3><p>These two concepts are fundamental to data visualization in Tableau and understanding them is the key to creating insightful and actionable visualizations. Understanding the distinction between dimensions (qualitative) and measures (quantitative) is crucial, affecting how data is displayed and analyzed in Tableau. Mastering these concepts helps newcomers create more insightful visualizations and make data-driven decisions effectively.</p><h3><strong>Dimensions</strong></h3><ul><li>Dimensions are categorical data fields that represent qualitative attributes.</li><li>They provide context and structure to data, allowing users to segment, group, and categorize information for analysis.</li><li>They are typically used on the rows and columns of a visualization, defining the axes of charts and graphs.</li></ul><h3><strong>Measures</strong></h3><p>· Measures are numerical data fields that represent quantitative values.</p><p>· They perform calculations, aggregations, and statistical operations on the data.</p><p>· They are typically used to create quantitative visualizations and provide a quantitative aspect to the data analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*wcJgXAcleZVZzI53ofeC9w.png" /><figcaption><em>Image created by Author in Tableau Desktop</em></figcaption></figure><p>Here we can see in above example that Customer name, Product name and Category name and Country are text data- non numerical data in that you cannot perform any arithmetic operation on the values in this column. for example, you cannot add two customers, right?</p><p>In fact, those columns represent <em>discrete values that cannot be measured and aggregate.</em></p><p>Like this we have other columns like Price Per Unit, Quantity and sales by that you can make some arithmetic calculation using the values. for example, sales average, sum of sale or total quantity.</p><p>So, all those columns which have fields that are quantitative in nature, can be measured or aggregated and are represented by numbers, percentages or sums are called <strong>Measures</strong>.</p><h3><strong>2.Countinues and Discrete</strong></h3><p>Now that we’ve covered Dimensions and Measures in detail, it’s time to explore another key Tableau concept: the difference between <strong>Discrete</strong> and <strong>Continuous</strong> fields.</p><p>Discrete values in the tableau are qualitative data such as categories, details, and segments. Which are considered as a title or header for example if we want to calculate the company wise profit details so name of company would be our discrete values which are qualitative data.</p><p>Continuous values in the tableau are measurable, quantitative data. In the above case Profit will be our continuous data.</p><p>In general, dimensional discrete values and continuous measure values are used in the tableau</p><p>In the tableau desktop the blue color value is showing a Discrete value, and the green color value is represented as a Continuous value in Tableau, it’s connected but not actually showing dimension and measure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*Vuxny7wm7rUvWATDMn4sUA.png" /></figure><p><strong>This visual explains the five core concepts that drive how Tableau builds every visualization.</strong></p><p>It highlights the difference between Dimensions and Measures, the foundation of data structure. The chart clearly shows how <strong>Discrete</strong> fields create headers while <strong>Continuous</strong> fields create axes. name of company is the discrete field while Profit is numerical values are the part of discrete field, is a continuous field.</p><p>Company‑wise profit bars help demonstrate how Tableau aggregates measures automatically.</p><p><strong>Discrete</strong> means <strong>distinct </strong>and<strong> separate</strong>. They are represented by <strong>separate values</strong>. <strong>Discrete</strong> fields contain a <strong>finite </strong>set of <strong>distinct </strong>values.</p><p><strong>Discrete</strong> fields are always in <strong>Blue</strong> colour in <strong>Tableau</strong> whether the field is a <strong>Dimension </strong>or a <strong>Measure</strong>.</p><p><strong>Continuous</strong> means <strong>unbroken value basically it’s whole, without interruption</strong>. They are represented by <strong>uninterrupted values</strong>.</p><p><strong>Continuous</strong> fields are always colored <strong>Green</strong> in <strong>Tableau</strong> irrespective of the field being a <strong>Dimension </strong>or a <strong>Measure</strong>.</p><p><strong>One more thing is if the values contain Boolean value like true/false or yes/no it will be show in Dimension fields only.</strong></p><p><strong>in dimension if the data is string data type, one cannot make it continuous by right click and same with Boolean data type In case of Boolean values, we cannot change it too continuous.</strong></p><p><strong>Continuous vs Discrete Values in Tableau — Steps</strong></p><p>Step 1 &gt; Connect the “Fact_Sales_data.xlsx” data set. Ensure that your data fields are correctly identified as either continuous or discrete.</p><p>Step 2 &gt; Drag discrete fields to the Rows, Columns, or Marks shelf to create categorical groupings in your visualizations. In this case, drag the “Customer name “ dimension and drop it onto the column shelf.</p><p>Step 3 &gt; Drag continuous fields to the Rows or Columns shelf to create continuous axes in visualizations like line charts, bar charts, or Scatter plot. In this case, drag the “Sales” measure and drop it onto the Rows shelf.</p><p>Step 4 &gt; This creates a Bar chart between customer name and their average Sales.</p><p>Step 5 &gt; Finally, change the title of Visualization to Discrete vs. Continuous in Tableau.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*rTzWoI9NdCjYbtIQd1TTZg.png" /><figcaption><em>Image created by Author in Tableau Desktop</em></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58be42a243ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tableau Data Foundations(part-1)]]></title>
            <link>https://medium.com/@trvithlani/tableau-data-foundations-part-1-cb798bc57b8e?source=rss-8f161b4ac72e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb798bc57b8e</guid>
            <dc:creator><![CDATA[Trupti Bagdai]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 04:23:56 GMT</pubDate>
            <atom:updated>2026-06-04T04:23:56.514Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Tableau is a powerful data‑visualization tool that helps you turn raw data into clear, interactive dashboards.</strong></p><p>1. Tableau is a leading data‑visualization tool used to analyze and present data visually.</p><p>2. It allows users to create interactive charts, dashboards, and stories without coding.</p><p>3. Tableau connects to multiple data sources, from Excel to databases and cloud platforms.</p><p>4. Its drag‑and‑drop interface makes complex analysis simple and fast.</p><p>5. Organizations use Tableau to make data‑driven decisions through clear, visual insights.</p><p>In this blog, I’ll walk you through three essential building blocks of Tableau: <strong>Data Source, Data Type, and Data Fields</strong>. Understanding these basics will help you prepare your data correctly and build more accurate visualizations.</p><p><strong>1-Data Source</strong></p><p>Data Source contains the Connection info of server path for Ex. CSV file or Excel Fire you saved in your local system, and you want to work on to get a productive output. It includes data structure in which order you want to format the table or the order or column to get the info in sequence. Metadata and customization are your semantic layer could be your calculated layer or any hierarchy or group any altered data by user inside tableau.</p><p><strong>2- Data type</strong></p><p>This is the Main topic I want to describe about, if you are coming from Non-IT Background you need to understand the Data type first before doing work on data file.</p><p>In Data analysis Knowing Data type is having secret key to Tableau, the powerful visualization tool.</p><p>Data type is a fundamental component in tableau that defines the nature and characteristics of data being analyzed.</p><p>Understanding the common Tableau Data Types available in Tableau will enable you to make informed decisions when working with your datasets. Here are some of the frequently used Tableau Data Types:</p><p><strong>Numeric Data Types</strong>- Includes the data in integer and Floats, which are the for calculation or aggregation for example lab reports values, Profit, tax amount.</p><p><strong>String Data Types</strong>- String Data Types include details in letters or words like name of customer, city or country name basically it’s stored textual information.</p><p><strong>Boolean Data Types </strong>— which Stores binary values like True /False or Yes/no which are useful to creating filters and conditional calculations.</p><p>Understanding Data Types is crucial for accurate data representation, efficient performance, and effective analysis in Tableau.</p><p><strong>Different Data Types in Tableau</strong></p><p>A. <strong>Integer</strong>: Integer Data Types represent whole numbers without decimal places. They are suitable for storing numerical values that do not require fractional precision. Integers are often used for counting, indexing, and performing mathematical calculations and aggregations.</p><p>B. <strong>Float:</strong> Float Data Types are used to represent decimal numbers. They offer greater precision compared to integers and are suitable for data that requires fractional values. Floats are commonly employed for financial data, scientific measurements, and any data that necessitates decimal accuracy.</p><p>C. <strong>Date/Time: </strong>Tableau provides various Data Types to handle date and time information. These include date, time, datetime, and duration. Date Data Types enable the analysis of trends and patterns over time, while time Data Types facilitate precise tracking of events. Datetime Data Types combine both date and time information. Duration Data Types allow for the measurement and calculation of time intervals.</p><p>D. <strong>String</strong>: String Data Types are used to store textual information, such as names, addresses, and descriptions. They are versatile and suitable for categorical data or dimensions. String Data Types support various operations, including concatenation, substring extraction, and pattern matching, which can be leveraged for data transformations and analysis.</p><p>E. <strong>Boolean</strong>: Boolean Data Types store binary values, typically represented as True or False. They are useful for creating filters, conditional calculations, and logical operations. Boolean Data Types are particularly handy for evaluating conditions and creating dynamic calculations based on specific criteria.</p><p>Understanding and utilizing these common Data Types in Tableau will empower you to accurately represent and analyze your data, leading to more meaningful and insightful visualizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*CAeNopXweJZZc11FknM4-Q.png" /><figcaption>Dataset for example</figcaption></figure><p>Here we can see in above image Column A and C is having decimal value so it’s called float data type and other numerical values like Quantity, product ID Customer ID having whole number describing Integer data type while text like customer name , email id are the string data type and last two column of dates are example of data and time data type.</p><p><strong>3- Data Fields</strong></p><p>A database is a set of data arranged in a particular way so that Tableau can use the necessary parts from it. Every database has several fields or records.</p><p>A database field refers to a set of values arranged in a table and has the same data type. A field is also known as a column or attribute.</p><p><strong>A. Required Fields : </strong>These fields must be filled out and skipping them is not an option. You will be presented with an error notice if you do not fill in this field with a value or entry before continuing. If you do not include this information, your database will not be comprehensive.</p><p><strong>B. Calculated Fields : </strong>These fields do not require entry, but they will be automatically calculated by the system from the existing values in other fields. Usually, this type of field will have a formula embedded in it and if you give the range of data to be taken, it will automatically fill the fields with it.</p><p><strong>C. Optional Fields: </strong>It is not a condition to fill these up and even if you leave these empty, you will not get an error message. Your database will be complete even without the completion of these fields. Fields are also classified according to the length of the value entered them. You can have Fixed length fields and Variable Length fields.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb798bc57b8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>