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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
iokoli
Frequent Visitor

[Expression.Error] We cannot convert the value "Band 4" to type List. Relative Referencing

Hi,

 

I am trying to create a custom column using relative row referencing in the Power BI query editor. However I keep getting the below error.

 

[Expression.Error] We cannot convert the value "" to type List. 

 

My Code is as follows:

 

if ([Agenda for Change Band]{[Index]} <> null and [Area of Work]{[Index]} = null)  or ([Agenda for Change Band]{[Index]} <> null and [Agenda for Change Band]{[Index] +1} <> null) then 1 else ([#"Area of Work - Tag"]{[Index] - 1} = 1 and [#"Area of Work - Tag"]{[Index]} = 0)*1

 

Does anyone know why I keep gettin that error? I have a suspicion it has do with the indexing.

 

Any help would be appreciated.

 

Thanks,

Ikenna 

 

1 ACCEPTED SOLUTION
iokoli
Frequent Visitor

Hi,

 

I have figured it out. I just needed to put the table name in front of the columns.

 

i.e. Table Name [Column Name]{index}

 

thanks for the help @v-qiuyu-msft

 

Kind regards,

Ikenna 

View solution in original post

3 REPLIES 3
iokoli
Frequent Visitor

Hi,

 

I have figured it out. I just needed to put the table name in front of the columns.

 

i.e. Table Name [Column Name]{index}

 

thanks for the help @v-qiuyu-msft

 

Kind regards,

Ikenna 

Hi @iokoli,

 

Glad to hear the issue is resolved by yourselfSmiley Happy. I will mark your reply as an answer to close this thread. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-qiuyu-msft
Community Support
Community Support

Hi @iokoli,

 

Can you share us the pbix file if possible? You can use some dummy data to recreate the issue and share the pbix file with us. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors