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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.