Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

First Time Fix

Hello,

 

Could someone help me with a custom column for First time Fix please? 

 

I have 2x date columns and im looking to find out if the job was completed as a first time fix.

 

Start Date

Finish Date

First Time Fix - Yes/No


Thanks, 

  • Open the Power Query Editor, and click on the Add Column tab. Select Conditional Column. 


    When the dialogue box opens, fill out new column name box and fill out the form:

     

    Column Name = start date

    operator = equals

    value = change to Select a Column and select finish date

    output = Yes

    Else = No

    This should get you there. 

4 Replies

  • cmarrazzo's avatar
    cmarrazzo
    Frequent Visitor

    Open the Power Query Editor, and click on the Add Column tab. Select Conditional Column. 


    When the dialogue box opens, fill out new column name box and fill out the form:

     

    Column Name = start date

    operator = equals

    value = change to Select a Column and select finish date

    output = Yes

    Else = No

    This should get you there. 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Perfect, thank you! 

  • ValtteriN's avatar
    ValtteriN
    Community Champion

    Hi,

    Try something like this:

    Data (example):

     



    Dax:

    Column = MAXX(filter(FixExample,and('FixExample'[First Time Fix]="Yes",earlier(FixExample[ID])=[id])),'FixExample'[finish date])

    End result:

     






    I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

    My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/

    • Anonymous's avatar
      Anonymous
      Not applicable

      No sorry, i dont think i have explained myself very clear. 

       

      I'm looking to add the column for Yes and No. I have a start date and finish date. 

       

      Basically i need a measure for = IF "Created Date" is the same as "Fix Date" then Yes, else No.