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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
kasiaw29
Resolver II
Resolver II

Token Comma expected

Hi all. This is my first post so I'm hoping to get this right. 

 

I've removed a piece of code by accident and I'm getting the following error of Token Comma expected. I go to show error and it highlights the piece and I insert a comma before it but this doesn't solve it. 

Any extra piar of eyes would be really useful here. Pleasae

 

let
    Source = Oracle.Database("mysource", [HierarchicalNavigation=true, 
Query="select 
#(lf)#(lf)lead_id, 
#(lf)#(lf)creation_date, 
#(lf)#(lf)name,
#(lf)#(lf)country, 
#(lf)#(lf)stage_id,
#(lf)#(lf)main_representative_id, 
#(lf)#(lf)cf$_region_desc Region,
#(lf)#(lf)cf$_sector_desc Sector,
#(lf)#(lf)source_id,
#(lf)#(lf)cf$_source_detail2,
#(lf)#(lf)cf$_district_desc District#(lf)

#(lf)#(lf)from ifsapp.business_lead_cfv#(lf)#(lf)
#(lf)where source_id_db in ('INTR','BUSDEV')#(lf) 

#"Renamed Columns" = Table.RenameColumns(Source,{ {"MAIN_REPRESENTATIVE_ID", "Lead Representative"}, {"REGION", "Lead Region"}, {"LEAD_ID", "Lead ID"}, {"SECTOR", "Lead Sector"}, {"STAGE_ID", "Lead Status"}, {"DISTRICT", "Lead District"}, {"CREATION_DATE", "Lead Creation Date"}, {"COUNTRY", "Lead Country"}, {"CF$_SOURCE_DETAIL2", "Lead Source Origin"}, {"SOURCE_ID", "Lead Source ID"}, {"NAME", "Lead Name"}}) in #"Renamed Columns"

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@kasiaw29 ,

 

Add the characters below.

"]),
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@kasiaw29 ,

 

Add the characters below.

"]),
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for pointing this out. This worked! Thanks! 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

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.