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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
OldCityCat
New Member

Beginner Power Query user with Grouped Rows Error

Thanks to Bill Szysz at Excelguru for helping me with getting started with this porject.

 

After added the Grouped Rows line of code with my column name, I am getting a "Token Comma expeted" error when  show error

"tbl" is high lighted. I verified all column names a correct, not sure what else to look for.

 

Thank you in advance for any and all suggestions.

OldCityCat

 

let
    Source = Table.NestedJoin(RowOne,{"Employee_Num"},RowTwo,{"Employee_Num"},"RowTwo",JoinKind.LeftOuter),
    #"Expanded RowTwo" = Table.ExpandTableColumn(Source, "RowTwo", {"Name", "Employee_Num", "Code", "Date", "DailyAmount"}, {"RowTwo.Name", "RowTwo.Employee_Num", "RowTwo.Code", "RowTwo.Date", "RowTwo.DailyAmount"}),
    #"Removed Other Columns" = Table.SelectColumns(#"Expanded RowTwo",{"Name", "Employee_Num", "Code", "Date", "Hours", "RowTwo.DailyAmount"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Other Columns", {"Employee_Num", "Date"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Duplicates",{{"RowTwo.DailyAmount", "DailyAmount"}}),
    #"Grouped Rows"= Table.Group(#"Renamed Columns", {"Employee_Num}, {{"tbl", each _ & Table.FromRecords({[#"Employee_Num"=null]}), type table [Name=text, Employee_Num=number, Code=text, Date=date, Hours=number, DailyAmount=number]}},0)
in
    #"Renamed Columns"

 

1 ACCEPTED SOLUTION
artemus
Microsoft Employee
Microsoft Employee

Your missing a " at the end of"

"Employee_Num

 

View solution in original post

4 REPLIES 4
artemus
Microsoft Employee
Microsoft Employee

Your missing a " at the end of"

"Employee_Num

 

artemus,

Thanks for your reply, I guess I didn't see the forest for the trees.

After fixing the " and refreshing the query, I expected to see a new table with two columns

Employee_Num and tbl with a expand option. No such luck.

I still must be missing something.  

Any Ideas?

 

 

Seems to work fine for me.

 

Are you getting an error, or what are you seeing?

I found my problem,

I needed to change  In to "#Rename Columns"

Work as expected 

 

#"Grouped Rows"= Table.Group(#"Renamed Columns", {"Employee_Num"}, {{"tbl", each _ & Table.FromRecords({[#"Employee_Num"=null]}), type table [Name=text, Employee_Num=number, Code=text, Date=date, Hours=number, DailyAmount=number]}},0)
in
    #"Renamed Columns"

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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