Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Change the data type after getting the cell value from a row below with index

Hello everyone

 

I have the following problem:

 

Sample Table:

ColumnTextIndex
Date11.02.20221
MessageAccident2
Date 09.02.20223
MessageMachine stop4

 

In the sample table, you see 2 different types of row: Date or Message

My Goal is to get the Text cell from the Message-Row on the same row as the date

11.02.2022Accident
09.02.2022Machine stop

 

So I made a custom column using the index:

=if [Index] > 0 then Tabelle1[Text]{[Index]} else 0

 

Now if I want to change the datatype from my Text column so to date, so I can have only date values, I get this error: Expression.Error: A cyclic reference was detected during evaluation.

 

Can someone help me?

Or you may have a better idea to get the cell value?

 

Thank you

 

 

 

 

  • Hi, 

    to achieve this

    you need:

    - pivot column

    - fill up Message

    - deselect null in column Date

    - remove index

    that's done

     

    If this post is useful to help you to solve your issue consider giving the post a thumbs up 👍

     and accepting it as a solution !

     

     

1 Reply

  • Hi, 

    to achieve this

    you need:

    - pivot column

    - fill up Message

    - deselect null in column Date

    - remove index

    that's done

     

    If this post is useful to help you to solve your issue consider giving the post a thumbs up 👍

     and accepting it as a solution !