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
Anonymous
Not applicable

Error Token Comma Expected 'in'

Hi,

 

I am getting 'Token Comma Expected' error but I cannot seem to understand how to resolve this one as the error is indicate at/under 'in'.

I have checked commas on all other lines and they are not showing as errors either.

 

Appreciate any help.

 

 

Error is indicated under 'in'Error is indicated under 'in'Error is highlighted at 'in'Error is highlighted at 'in'

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Nevermind, I actually managed to get what I needed with this Union Join

 

Screenshot_1491.jpg

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Check that firstCol is a list? Also, check the thridcol line.

We need to remove the code and check what is causing the error.  Not visible in screenshot

 

If this does not help
Can you a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amitchandak,

 

Thanks for responding.

 

I'll start off by what I am trying to do (maybe that will be easier).

I have a list of teams which are in 2 columns (home and away). I would like to create a third column with all distinct values from both columns as not all teams are featured in both lists.

I can then aggregate other values such as attendance, matches played etc, whereas right now I can only do that for Home teams or Away teams seperately.

 

Let me know if you need anything else, thanks again.

Screenshot_1490.jpg

 

 

Anonymous
Not applicable

Nevermind, I actually managed to get what I needed with this Union Join

 

Screenshot_1491.jpg

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.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.