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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shadedfern
Frequent Visitor

Creating a Conditional Column

For background:

 

I have a column (Translation Time) which when I import it is in the wrong format, in which when I load it into PowerBI I have to edit it to the HH:MM:SS format. From there a create a new column to essentially transform all the values in the Translation Time column to seconds.

 

Now here is where I get stuck. I am trying to create another 'conditional' column to serve as the outlier column. The condition I am trying to impose is to capture all values 60 seconds and above in the new column.

 

I was looking up how to do it and the first step people said was to go to edit query but that reverses the initial formatting I do when I load in my data so not sure where to go from there.

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @shadedfern ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
audreygerred
Super User
Super User

Try to make the other changes you made in Power Query as well, then the conditional column will be another applied step. You can do IF statements on a calculated column, but you do get better performance when making columns in Power Query versus using DAX

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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