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
qwertzuiop
Advocate III
Advocate III

Create word cloud and use stop words through the "exclude" field

Hello dear Community

 

If I have a table with 1000 long form answers (sentences), and I create a table with stopwords. How do I setup key columns to link the two tables? The table inherently don't have any relationship to each other."

 

Cheers

qwertzuiop

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

I tried to do this with Word Cloud and was surprised it didn't accept columns from unrelated tables.  Two ways around this.

 

1. Make a relationship between your column containing the long text and the one with your stopwords.  Doesn't matter what kind of relationship, or if there are no matches.

 

2. Make a new blank query where you force those two columns in the same table with something like this.

= Table.FromColumns({StopWords[StopWords], TextTable[TextColumn]})

Then use the columns from this new table in your visual. 

 

#1 is easier, but I came up with #2 first so sharing both.

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Employee
Employee

I tried to do this with Word Cloud and was surprised it didn't accept columns from unrelated tables.  Two ways around this.

 

1. Make a relationship between your column containing the long text and the one with your stopwords.  Doesn't matter what kind of relationship, or if there are no matches.

 

2. Make a new blank query where you force those two columns in the same table with something like this.

= Table.FromColumns({StopWords[StopWords], TextTable[TextColumn]})

Then use the columns from this new table in your visual. 

 

#1 is easier, but I came up with #2 first so sharing both.

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@qwertzuiop , Can you share sample data and sample output in a table format?

 

You can have measure  like

calculate([measure], filter(Table,not( Table[word] in values(table2[stop word]))))

or

calculate([measure], filter(Table,not( Table[word] in allselected(table2[stop word]))))

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.