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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
AnaIsa
Frequent Visitor

Expression.SyntaxError: Token ')' expected.

Hi, Could you help me to know why I have this kind of error and how can be solved?

 

Expression.SyntaxError: Token ')' expected.

 

Table.TransformColumns( #"Filtered Rows4",("AttachmentContent",each Excel.Workbook(_ true)))

 

thankyou

AnaIsa_0-1714263708604.png

 

1 ACCEPTED SOLUTION

If you only need that tab then you need to specify that. 

 

I would recommend you click the Binary link for the first attachment and then examine the code that creates.  Then replace the new steps by the appropriate sequence.

View solution in original post

6 REPLIES 6
AnaIsa
Frequent Visitor

Thank you very much for your help, I was abble 😀

lbendlin
Super User
Super User

Second parameter needs to be a list, identified by {  and not (

 

Table.TransformColumns - PowerQuery M | Microsoft Learn

I tried as well, but it does not work:

 

AnaIsa_0-1714272024656.png

 

Remove the "true" part.

 

What are you trying to accomplish?

I want to connect PBI directly from outlook, that email contains two files one is excel file and the other one is PDF file.

In the next image,in the extension field,  I have filtered by .xlsx, in AttachmentContent field is where I want to put this formula: Table.TransformColumns( #"Filtered Rows4",{"AttachmentContent",each Excel.Workbook(_ true)}) in order to see table instead of Binary.

AnaIsa_1-1714413028461.png

I need to mention that the file I want to connect contains four tabs, I only need the yellow tab:

 

AnaIsa_2-1714413167277.png

Is there another option to do this?

Thank you

 

If you only need that tab then you need to specify that. 

 

I would recommend you click the Binary link for the first attachment and then examine the code that creates.  Then replace the new steps by the appropriate sequence.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.