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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MHoque
Frequent Visitor

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
MHoque
Frequent Visitor

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

@MHoque , 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.

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

 

 

MHoque
Frequent Visitor

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

 

Screenshot_1491.jpg

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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