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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Expression.Error: We cannot apply field access to the type List. Details: Value=[List] Key=S

I am trying to use Power Query to give me the difference between consecuvtive start times in the table below. The second row "Start Time" needs to move to the first row of a new column. How do I do this? I tried using index function and using the following code: {[Index]+1}[Start Time] but I get the following error message : 

scruffychain_0-1637609798124.png

 


Expression.Error: We cannot apply field access to the type List. Details: Value=[List] Key=S

What is a good work around for this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

You can also consider using Dax to solve this problem

Here are the steps you can follow:

1. In Power query, Add Column – Index Column From 1.

vyangliumsft_1-1637808895954.png

2. Create calculated column.

New_Date =
var _1=CALCULATE(SUM('Table'[date]),FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])+1))
return
IF(
    ISBLANK(_1),BLANK(),_1)

3. Result:

vyangliumsft_2-1637808895955.png

 

Best Regards,

Liu Yang

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

You can also consider using Dax to solve this problem

Here are the steps you can follow:

1. In Power query, Add Column – Index Column From 1.

vyangliumsft_1-1637808895954.png

2. Create calculated column.

New_Date =
var _1=CALCULATE(SUM('Table'[date]),FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])+1))
return
IF(
    ISBLANK(_1),BLANK(),_1)

3. Result:

vyangliumsft_2-1637808895955.png

 

Best Regards,

Liu Yang

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

VahidDM
Super User
Super User

HI @Anonymous 

Add two index columns, first idex columns start from 1 and second one start from 0, then mege the table with it self and select the 1st and 2nd column:

VahidDM_0-1637623893032.png

 

 

then expand the column and selec the start date:

VahidDM_1-1637623934964.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

AlexisOlson
Super User
Super User

{[Index]+1} is just a list containing a single number, which doesn't have an associated field [Start Time].

 

You might be interested in my answer on StackOverflow or a recent post here:
https://community.powerbi.com/t5/Desktop/Calculating-Daily-values-from-Cumulative-Total/m-p/2198969

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.