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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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