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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculated Column

Hi Experts,

 

First, I have split the column personname in query editor and wrote some logic on it. is it possible to import same coulmn(personame) from Db

 

 

Secondly,I want to write an If condition and need to create a separate column based on this condition

 

Eg;

 

Person               condition column(If person is not null then Name else Other)

aa                                Student

bb                                Student

null                               Others

cc                                 Student

dd                                Student

null                               Others

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

 

1. You can just duplicate the original "personname" column in Query Editor, then wrote logic on the copy.

2. 

 

Calculated Column  = IF([Person] = BLANK(), "Others",[Person])

 

 

Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 

 

1. You can just duplicate the original "personname" column in Query Editor, then wrote logic on the copy.

2. 

 

Calculated Column  = IF([Person] = BLANK(), "Others",[Person])

 

 

Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

az38
Community Champion
Community Champion

@Anonymous 

it looks easy

Column = if([Person] = "null", "Other", [Person])

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.