Forum Discussion

EDO_01_1789's avatar
EDO_01_1789
Helper I
4 years ago
Solved

previous date

Hello, I would like to create a New column that will allow me to have the time of the previous validator. here is the result I would like to have.     in my table there are between 5 a...
  • EDO_01_1789's avatar
    EDO_01_1789
    4 years ago

    hello Greg_Deckler 

    thanks for your quick feedback.

    I read your article, but I think that unless I'm mistaken it doesn't apply in my dataset.

    If I'm not mistaken in your article you have two different columns for the dates, while in my case I have only one.

    what I try to do is only to transcribe the time of validation of the previous step :

    • for validator 2, show me the time of validator 1
    • for validator 3, show me the time of validator 2
    • for validator 4, show me the time of validator 3
    • for validator 5, show me the time of validator 4

     

  • EDO_01_1789's avatar
    EDO_01_1789
    4 years ago

    Greg_Deckler ,

     

    I feel embarrassed, sorry for the bother.

    but what do you want me to add in this part of your formula.

     

    I have only one column that contains dates in my data table, called "Validator Date". I think you have already integrated it in the first variable of your formula (Var_date)

    Can you help me?

    moreover when i try to change this part by my famous column, i have this error message and i don't know why (is it missing a parenthesis or a comma somewhere)?

     

    thanks for your help.

  • v-jianboli-msft's avatar
    3 years ago

    Hi EDO_01_1789 ,

     

    Based on your description, I have created a simple sample:

    Please try:

    previous date = 
    VAR _num =
        VALUE ( MID ( [Attribute], 11, FIND ( " :", [Attribute] ) - 11 ) )
    VAR _attribute = "Validator " & _num - 1 & " : comments"
    RETURN
        MAXX (
            FILTER (
                'Table',
                [FileLeafRef] = EARLIER ( 'Table'[FileLeafRef] )
                    && [Attribute] = _attribute
            ),
            [Validator Date]
        )
    

    Final output:

    Best Regards,

    Jianbo Li

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