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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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

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.