Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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

 

Bishop1895_0-1644862464047.png

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

 

 

 

 

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi, 

to achieve this

serpiva64_0-1644864072576.png

you need:

- pivot column

serpiva64_1-1644864124610.png

- 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 !

 

 

View solution in original post

1 REPLY 1
serpiva64
Solution Sage
Solution Sage

Hi, 

to achieve this

serpiva64_0-1644864072576.png

you need:

- pivot column

serpiva64_1-1644864124610.png

- 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 !

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors