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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.