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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Aravinda
New Member

Expression Error Occured during Mutiple Transform Rows function in single step

When I Try to Remove First Row and last row in single step using Table.Transformrows Function it show as expression error as mentioned below

Expression.Error: We cannot convert a value of type List to type Function.
Details:
Value=[List]
Type=[Type]pression

 

Below Dax Function is used 

= Table.TransformRows(#"Changed Type",{{Table.RemoveFirstN(#"Changed Type",1)},{Table.RemoveLastN(#"Changed Type",1)}})

 

Kindly Suggest Is there Any other Solution in a way where we can do mutiple transform row/Columns operations in single step

 

1 ACCEPTED SOLUTION
daircom
Resolver II
Resolver II

Hi @Aravinda ,

It is a power query M function, not a DAX function. That might help you googling it.

You can simply apply a function to remove the top row and then immedieately apply the function to remove the last row on the result. Without saving it as an additional step.
Use the below (the first 1 is the amount of top rows that are skipped, the second 1 is the amount of bottom rows that are skipped):


= Table.RemoveLastN(
Table.Skip(#"Changed Type", 1), 1
)

View solution in original post

3 REPLIES 3
daircom
Resolver II
Resolver II

Hi @Aravinda ,

It is a power query M function, not a DAX function. That might help you googling it.

You can simply apply a function to remove the top row and then immedieately apply the function to remove the last row on the result. Without saving it as an additional step.
Use the below (the first 1 is the amount of top rows that are skipped, the second 1 is the amount of bottom rows that are skipped):


= Table.RemoveLastN(
Table.Skip(#"Changed Type", 1), 1
)

Thanks for correcting me for mentioning M Language as Dax Function.

Your suggested steps give me a desired answer.I Appreciate your time spent to answer my queries

@Aravinda , glad to be able to help! Great that it worked!

If you select my answer as a solution, then another person facing this problem can find it as well (Y) 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors