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. Create Quiz 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 Introduction & Setup the Power BIWhat is Business Intelligence?6 min readPower BI - Introduction5 min readPower BI - Key Components4 min readPower BI - Practical Applications7 min readHow to Install Power BI on Windows?3 min readPower BI - Data Sources and its type4 min readDifferences Between Microsoft Power BI and SSRS3 min readPower BI Free vs Power BI Pro vs Power BI Premium4 min readThe Power BI Query EditorPower BI - How to edit in Power BI App?8 min readPower BI - DAX Date Functions3 min readPower BI - How to Add Conditional Columns?2 min readDAX Aggregate Functions in Power BI5 min readPower BI - Excel Integration3 min readPowerBI Dash Board VisualisationPower BI - Dashboard Introduction5 min readPower BI - Dashboard Actions8 min readPower BI - Create a Stacked Bar Chart3 min readPower BI - How to add Reports to Dashboards?3 min readPower BI - Report Level Filters2 min readPower BI - How to Format Matrix?4 min readPower BI - Slicer5 min readPower BI - How to Format a Card?5 min readPower BI - Format Multi-Row Card6 min readPower BI - How to Create a Map?3 min readPower BI - How to Format Map6 min readPower BI - How to Create a Treemap?3 min readPower BI - How to Format Tree Map?6 min readConnect Power BI Desktop with Power BI Service5 min readPower BI - Create a Table2 min readPower BI - How to Format Table?4 min readPower BI - Create a Stacked Column Chart3 min readPower BI - How to Format Stacked Column Chart?5 min readPower BI - Create 100% Stacked Column Chart4 min readPower BI - Create 100% Stacked Bar Chart3 min readPower BI - Format Stacked Bar Chart4 min readPower BI - How to Create a Stacked Area Chart3 min readPower BI - Format Area Chart11 min readPower BI - Create a Radial Gauge Chart4 min readPower BI - Key Performance Indicators (KPIs) Dashboards3 min readPower BI _ Format KPIs ChartPower BI - Format Clustered Bar Chart9 min readPower BI _ Format Clustered Bar ChartPower BI - How to Create a Waterfall Chart?2 min readPower BI - Format Waterfall Chart8 min readPower BI - Create a Filled Map3 min readPower BI - Format Filled Map6 min readPower BI - How to Create a Scatter Chart?4 min readPower BI - Format Scatter Chart8 min readShowing Trends with Line ChartsPower BI - Format Line Chart10 min readPower BI - How to Create a Shape Map?4 min readPower BI - Format Donut Chart6 min readPower BI - Format Pie Chart6 min readPower BI - Format Ribbon Chart8 min readPower BI - Create a R Script Visual4 min readPower BI - Format Line and Stacked Column Chart11 min readPower BI - Format Line and Clustered Column Chart11 min readDAX IntroductionPower BI - How to Create Calculated Columns?3 min readPower BI- Functions5 min readPower BI- DAX Window Function5 min readPower BI - DAX Logical Functions3 min readPower BI - DAX Information Functions5 min readPower BI - DAX TEXT Functions11 min readPower BI- DAX Index Function4 min readPower BI - DAX Trigonometric Functions3 min readPower BI - DAX COUPDAY Financial Function5 min readPower BI - DAX Depreciation Functions9 min readPower BI - Distinct() function2 min readPower BI - DAX Math Functions12 min readPower BI - DAX Counting Functions3 min readPower BI- DAX Bitwise Functions2 min readPower BI Interview Questions and Answers15+ min read Like