Forum Discussion

siva3012's avatar
siva3012
Icon for Helper II rankHelper II
6 years ago
Solved

move data from 1st cell into 2nd cell downwards

Hi, I  need to move the data from 1st cell into 2nd cell and leave the 1st cell empty.   Can anyone guide me in doing this in PowerBI?  I have the screenshot which is required.     
  • v-frfei-msft's avatar
    6 years ago

    Hi siva3012 ,

     

    To create a calculated column as below.

    Column = 
    VAR d =
        CALCULATE (
            MAX ( 'Table'[Local date Time] ),
            FILTER (
                'Table',
                'Table'[Local date Time] < EARLIER ( 'Table'[Local date Time] )
            )
        )
    RETURN
        CALCULATE (
            MAX ( 'Table'[Value] ),
            FILTER ( 'Table', 'Table'[Local date Time] = d )
        )
    

     

    For more details, please check the pbix as attached.