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

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

Reply
JimB-GA
Helper III
Helper III

adding a calculated column based on contents of two different columns

Good afternoon all.  

 

I have a table with columns named "status" and "Age".  I would like to have the calculated column return a value of "Late" if the status column = "Open" and the "Age" column is > 30.  I know how to do this in both Excel and Access, but Power BI solution eludes me.

 

All help is greatly appreciated.

 

Jim L

2 ACCEPTED SOLUTIONS
d_gosbell
Super User
Super User

So that would be something like the following:

 

= IF( table[Status] = "Open" && table[Age] > 30, "Late")

View solution in original post

v-chuncz-msft
Community Support
Community Support

@JimB-GA 

 

By the way, you may also add a custom column in Query Editor.

if [status] = "Open" and [Age] > 30 then "Late" else null
Community Support Team _ Sam Zha
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
v-chuncz-msft
Community Support
Community Support

@JimB-GA 

 

By the way, you may also add a custom column in Query Editor.

if [status] = "Open" and [Age] > 30 then "Late" else null
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
d_gosbell
Super User
Super User

So that would be something like the following:

 

= IF( table[Status] = "Open" && table[Age] > 30, "Late")

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Users online (3,979)