Forum Discussion

soorajskn's avatar
soorajskn
Regular Visitor
3 years ago
Solved

Convert an excel formula to Power Query

I have an excel formula which I am trying to replicated on power query 

 

AK – Concat (text)

E – Opened (Date)

Days between  =IF($AK2=$AK3,($E3-$E2),"")

 

Can someone explain me how this can be replicated? 

5 Replies

    • soorajskn's avatar
      soorajskn
      Regular Visitor

      ribisht17  Thank you for your quick response. 

       

      I am not looking for Concatenation formula.  I am trying to convert the below excel formula to power Query 

       

      Days between  =IF($AK2=$AK3,($E3-$E2),"")

       

      Days between = If AK2 is equals to AK3, then E3 - E2, else Null.

       

      This is the requirement 

       

  • Share some data to work with (in a format the can be pasted in an MS Excel file) and show the expected result.

    • soorajskn's avatar
      soorajskn
      Regular Visitor

      Hello Ahmedx  

       

      Thank you for your response. Here is the excel sheet. 

       

      OpenedConcat-User/CI/SubcatDays BWN 
      13-03-2023 10:52A00011Active Directory PasswordHow To  
      14-03-2023 15:38BB00532Active Directory PasswordHow To0.083333333 
      14-03-2023 17:38BB00532Active Directory PasswordHow To  
      22-03-2023 13:03AA00800WN-KSSlow/Freezing1.166666667 
      23-03-2023 17:03AA00800WN-KSSlow/Freezing  

       

       

  • 1)you need to create a column index

    2)