Power BI - How to Add Conditional Columns? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 3 Likes Like Report Creating insightful reports often requires data to be organized and categorized based on specific conditions. Conditional columns helps change or add values in a column based on logic you define. In this article, we’ll learn how to create conditional columns using Power Query Editor.Step 1: Open Power Query EditorTo create conditional column, you first need to open the Power Query Editor. Steps include:Open Power BI Desktop.Go to the Home tab.Click on Transform Data.A new window called Power Query Editor will open.If you haven’t uploaded your data yet you can do it here by clicking on New Source and selecting your dataset. Power Query EditorBelow is the screenshot of the dataset as well. In this example we are using a dataset which you can download from here, from a Library Supplies company which looks like this:Dataset Step 2: Adding a Conditional ColumnNow that you are inside the Power Query Editor let's add a Conditional Column. Follow the below steps:Go to the Add Column tab.Click on Conditional Colum A dialog box will appear where you can set your conditions. Here we are targeting the "Unit Price (INR/Unit)" column from the Data Table to create a conditional column "Display Price". The condition is if the "Unit Price is less than or equal to 100" we will set the Unit Price as 150 else the original price would be unchanged and all the changed or unchanged values would be inserted into the "Display Price" column respectively.Conditional Column SettingsThe output of the query will add the conditional column.Query OutputAdding a Column Using Multiple ConditionsNow let's add another conditional column named "Final Price" that will contain the "Unit Price (INR/Unit)" column value if it is less than or equal to 200 set it to 500. Else if it is greater than or equal to 500 Store the Unit Price. However the figure from the "Total Price (INR)" column will be the Output if none of the earlier tests returned a positive result.Column with Multiple ConditionsThe output of the query will add the conditional column.Query OutputCreating conditional columns in Power BI is very easy once you understand the steps. It helps you control how your data looks without writing complex formulas. This makes your reports more dynamic and meaningful. Comment M mdeis23qn Follow 3 Improve M mdeis23qn Follow 3 Improve Article Tags : Technical Scripter Power BI AI-ML-DS Technical Scripter 2022 Power BI +1 More Explore Power BI Tutorial | Learn Power BI 5 min read Introduction & Setup the Power BIWhat is Business Intelligence? 6 min read Power BI - Introduction 5 min read Power BI - Key Components 4 min read Power BI - Practical Applications 7 min read How to Install Power BI on Windows? 3 min read Power BI - Data Sources and its type 4 min read Differences Between Microsoft Power BI and SSRS 3 min read Power BI Free vs Power BI Pro vs Power BI Premium 4 min read The Power BI Query EditorPower BI - How to edit in Power BI App? 8 min read Power BI - DAX Date Functions 3 min read Power BI - How to Add Conditional Columns? 2 min read DAX Aggregate Functions in Power BI 5 min read Power BI - Excel Integration 3 min read PowerBI Dash Board VisualisationPower BI - Dashboard Introduction 5 min read Power BI - Dashboard Actions 8 min read Power BI - Create a Stacked Bar Chart 3 min read Power BI - How to add Reports to Dashboards? 3 min read Power BI - Report Level Filters 2 min read Power BI - How to Format Matrix? 4 min read Power BI - Slicer 5 min read Power BI - How to Format a Card? 5 min read Power BI - Format Multi-Row Card 6 min read Power BI - How to Create a Map? 3 min read Power BI - How to Format Map 6 min read Power BI - How to Create a Treemap? 3 min read Power BI - How to Format Tree Map? 6 min read Connect Power BI Desktop with Power BI Service 5 min read Power BI - Create a Table 2 min read Power BI - How to Format Table? 4 min read Power BI - Create a Stacked Column Chart 3 min read Power BI - How to Format Stacked Column Chart? 5 min read Power BI - Create 100% Stacked Column Chart 4 min read Power BI - Create 100% Stacked Bar Chart 3 min read Power BI - Format Stacked Bar Chart 4 min read Power BI - How to Create a Stacked Area Chart 3 min read Power BI - Format Area Chart 11 min read Power BI - Create a Radial Gauge Chart 4 min read Power BI - Key Performance Indicators (KPIs) Dashboards 3 min read Power BI _ Format KPIs ChartPower BI - Format Clustered Bar Chart 9 min read Power BI _ Format Clustered Bar ChartPower BI - How to Create a Waterfall Chart? 2 min read Power BI - Format Waterfall Chart 8 min read Power BI - Create a Filled Map 3 min read Power BI - Format Filled Map 6 min read Power BI - How to Create a Scatter Chart? 4 min read Power BI - Format Scatter Chart 8 min read Showing Trends with Line ChartsPower BI - Format Line Chart 10 min read Power BI - How to Create a Shape Map? 4 min read Power BI - Format Donut Chart 6 min read Power BI - Format Pie Chart 6 min read Power BI - Format Ribbon Chart 8 min read Power BI - Create a R Script Visual 4 min read Power BI - Format Line and Stacked Column Chart 11 min read Power BI - Format Line and Clustered Column Chart 11 min read DAX IntroductionPower BI - How to Create Calculated Columns? 3 min read Power BI- Functions 5 min read Power BI- DAX Window Function 5 min read Power BI - DAX Logical Functions 3 min read Power BI - DAX Information Functions 5 min read Power BI - DAX TEXT Functions 11 min read Power BI- DAX Index Function 4 min read Power BI - DAX Trigonometric Functions 3 min read Power BI - DAX COUPDAY Financial Function 5 min read Power BI - DAX Depreciation Functions 9 min read Power BI - Distinct() function 2 min read Power BI - DAX Math Functions 12 min read Power BI - DAX Counting Functions 3 min read Power BI- DAX Bitwise Functions 2 min read Power BI Interview Questions and Answers 15+ min read Like