{"id":79,"date":"2026-02-25T08:52:23","date_gmt":"2026-02-25T08:52:23","guid":{"rendered":"https:\/\/gigz.pk\/powerbi\/?post_type=lesson&#038;p=79"},"modified":"2026-03-16T05:56:13","modified_gmt":"2026-03-16T05:56:13","slug":"creating-calculated-columns","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/powerbi\/lesson\/creating-calculated-columns\/","title":{"rendered":"Creating Calculated Columns"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Creating Calculated Columns in Power BI<\/strong><\/h2>\n\n\n\n<p>Calculated columns in Power BI are used to add new data fields to your tables based on existing data. These columns allow you to perform row-by-row calculations that become part of your data model and can be used in visuals, filters, and further analysis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is a Calculated Column<\/strong><\/h2>\n\n\n\n<p>A calculated column is a column that you create using a formula written in <strong>DAX (Data Analysis Expressions)<\/strong>. Unlike measures, calculated columns are computed for each row in the table and stored in the data model.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>When to Use Calculated Columns<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When you need a new column derived from existing data for each row.<\/li>\n\n\n\n<li>For creating categories, labels, or classifications.<\/li>\n\n\n\n<li>When performing row-level operations like concatenating text or calculating age.<\/li>\n\n\n\n<li>To simplify filtering and grouping in reports.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Create a Calculated Column<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Power BI Desktop.<\/li>\n\n\n\n<li>Go to <strong>Data View<\/strong> by clicking the table icon on the left pane.<\/li>\n\n\n\n<li>Select the table where you want to add the calculated column.<\/li>\n\n\n\n<li>Click on <strong>New Column<\/strong> in the <strong>Modeling tab<\/strong> of the Ribbon.<\/li>\n\n\n\n<li>Enter the DAX formula for your calculation. Example: FullName = Customers[FirstName] &amp; &#8221; &#8221; &amp; Customers[LastName]<\/li>\n\n\n\n<li>Press Enter. The new column will appear in your table and can now be used in visuals.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Common Examples of Calculated Columns<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Concatenating Columns<\/strong>: Combine first and last names into a full name.<\/li>\n\n\n\n<li><strong>Simple Arithmetic<\/strong>: Calculate profit by subtracting cost from revenue.<\/li>\n\n\n\n<li><strong>Conditional Columns<\/strong>: Create categories based on values, e.g., SalesCategory = IF(Sales[Amount] &gt; 1000, &#8220;High&#8221;, &#8220;Low&#8221;)<\/li>\n\n\n\n<li><strong>Date Calculations<\/strong>: Calculate age from a birthdate or extract month and year from a date column.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use calculated columns for row-level calculations only; for aggregations, prefer <strong>measures<\/strong>.<\/li>\n\n\n\n<li>Keep formulas simple and readable for better performance.<\/li>\n\n\n\n<li>Avoid creating too many calculated columns, as they increase the size of the data model.<\/li>\n\n\n\n<li>Test the column values to ensure the calculation logic is correct.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Calculated columns in Power BI provide a powerful way to enrich your data model with additional fields derived from existing data. They allow row-level calculations, categorization, and transformations that enhance your reporting and analysis capabilities.<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1773640738911\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/powerbi\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Power BI Fundamentals >Data Modeling Basics > Creating Calculated Columns<\/span><\/span><\/div>","protected":false},"menu_order":17,"template":"","class_list":["post-79","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating Calculated Columns - Power BI Learning Hub<\/title>\n<meta name=\"description\" content=\"Learn how to create calculated columns in Power BI using DAX for row-level calculations, categorization, and enhanced data modeling.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating Calculated Columns - Power BI Learning Hub\" \/>\n<meta property=\"og:description\" content=\"Learn how to create calculated columns in Power BI using DAX for row-level calculations, categorization, and enhanced data modeling.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"Power BI Learning Hub\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-16T05:56:13+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/lesson\\\/creating-calculated-columns\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Creating Calculated Columns - Power BI Learning Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/#website\"},\"datePublished\":\"2026-02-25T08:52:23+00:00\",\"dateModified\":\"2026-03-16T05:56:13+00:00\",\"description\":\"Learn how to create calculated columns in Power BI using DAX for row-level calculations, categorization, and enhanced data modeling.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Power BI Fundamentals >Data Modeling Basics > Creating Calculated Columns\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/\",\"name\":\"Power BI Learning Hub\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating Calculated Columns - Power BI Learning Hub","description":"Learn how to create calculated columns in Power BI using DAX for row-level calculations, categorization, and enhanced data modeling.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"Creating Calculated Columns - Power BI Learning Hub","og_description":"Learn how to create calculated columns in Power BI using DAX for row-level calculations, categorization, and enhanced data modeling.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Power BI Learning Hub","article_modified_time":"2026-03-16T05:56:13+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/powerbi\/lesson\/creating-calculated-columns\/","url":"https:\/\/gigz.pk\/","name":"Creating Calculated Columns - Power BI Learning Hub","isPartOf":{"@id":"https:\/\/gigz.pk\/powerbi\/#website"},"datePublished":"2026-02-25T08:52:23+00:00","dateModified":"2026-03-16T05:56:13+00:00","description":"Learn how to create calculated columns in Power BI using DAX for row-level calculations, categorization, and enhanced data modeling.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/powerbi\/"},{"@type":"ListItem","position":2,"name":"Power BI Fundamentals >Data Modeling Basics > Creating Calculated Columns"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/powerbi\/#website","url":"https:\/\/gigz.pk\/powerbi\/","name":"Power BI Learning Hub","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/powerbi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/lesson\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/media?parent=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}