Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
geroagostini
Helper I
Helper I

Need to add values to a column ( or create a new one )

hi!

 I have a column like the given below and i need to add them a order numbers at the beginnin: 1.New , 2.Created , 3.Old , 4.Recent.

 How can i create a Custom column that does it? 

 

 Column A

    New

    Old

    Old

    New

    Created

    Recent

    Created

 

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi, 

if that is your only problem you can solve it with a conditional Column

serpiva64_0-1674575073364.png

You can also do it step by step with replace if you don't want to create a new column

If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution

 

 

 

View solution in original post

3 REPLIES 3
serpiva64
Solution Sage
Solution Sage

Hi, 

if that is your only problem you can solve it with a conditional Column

serpiva64_0-1674575073364.png

You can also do it step by step with replace if you don't want to create a new column

If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution

 

 

 

FreemanZ
Super User
Super User

hi @geroagostini 

You may add a calculated column with  DAX code like

Order = 
SWITCH(
    [Column A],
    "New", 1,
    "Created", 2,
    "Old", 3,
    4
)
Idrissshatila
Super User
Super User

Hello @geroagostini ,

You could add a conditional column in power query , check this link for instructions https://learn.microsoft.com/en-us/power-query/add-conditional-column

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.