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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

where clause in DAX for custom column

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
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

Does this give the result you're asking for?

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

View solution in original post

2 REPLIES 2
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

Does this give the result you're asking for?

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

Thanks! It worked perfectly, I did not know u could use 'if' in dax.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors