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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Make new column basedexisting column values

Hello,

 

I want to make a new column with the values based of a existing column. At the moment I have the following columns: 

1. 'TypeWorkTime' with two values: planning and realtime

2. 'Time'

 

So I want to make 2 new columns called planning and worktime with the values of Time, I have tried the following DAX formula but I am doing something wrong.

Planning = 'Trello cards'[Time] ; 'Trello cards'[TypeWorkTime] = "Planning"

Thanks,

 

Shabby

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

I'm not really sure what you are trying to do here. If you want to create a new calculated column that only returns the time if the type is "planning" then you would write it like this

 

Planning = IF( 'Trello cards'[TypeWorkTime] = "Planning" ; 'Trello cards'[Time] )

However, if the point of this column is just to ba able to sum up the planning time then you don't need a new column you can do all that in a measure.

 

eg.

 

Planning = CALCULATE( SUM(  'Trello cards'[Time] ) ; 'Trello cards'[TypeWorkTime] = "Planning" )

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

I'm not really sure what you are trying to do here. If you want to create a new calculated column that only returns the time if the type is "planning" then you would write it like this

 

Planning = IF( 'Trello cards'[TypeWorkTime] = "Planning" ; 'Trello cards'[Time] )

However, if the point of this column is just to ba able to sum up the planning time then you don't need a new column you can do all that in a measure.

 

eg.

 

Planning = CALCULATE( SUM(  'Trello cards'[Time] ) ; 'Trello cards'[TypeWorkTime] = "Planning" )
Anonymous
Not applicable

The first solution worked perfectly, thanks!

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.

Top Solution Authors
Top Kudoed Authors