Forum Discussion

surajde's avatar
surajde
Helper I
3 years ago
Solved

Last Modified Time

HI All,    Need your help with BI Formula for below dummy data.  In excel it was much easy. Need to push this to PowerBI. Please help with below scenario to replicate this in PowerBi   if you co...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi surajde ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2)Click on "transform data" to enter the power query and add index a column.

    (3) We can create calculated columns.

    Column = MAXX(FILTER('Table',[Request ID]=EARLIER('Table'[Request ID])&&[Index]=EARLIER('Table'[Index])-1),[Group Name])
    Column 2 = IF(OR([Column]=BLANK(),[Group Name]<>[Column]),[Request Modified on ])
    Column 3 = var a=MAXX(FILTER('Table',[Request ID]=EARLIER('Table'[Request ID])&&[Group Name]=EARLIER('Table'[Group Name])&&[Index]<EARLIER('Table'[Index])&&[Column 2]<>BLANK()),[Index])
    return IF([Column 2]<>BLANK(),[Column 2],IF([Group Name]=[Column],LOOKUPVALUE('Table'[Column 2],'Table'[Index],a)))

    (4) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.