Forum Discussion

mpfraser7's avatar
mpfraser7
Frequent Visitor
6 years ago
Solved

Word Cloud - Stop words

Hello,   The word cloud visual has a built in stop words feature but unfortunately, it has a character limit. I have over 100 stop words and I can't fit them all in the stop words feature.   I tr...
  • sturlaws's avatar
    6 years ago

    Hi, mpfraser7,

     

    you can make use of Power Query(Edit queries) in Power BI.

     

    First split your column 1 by space, make sure you expand the Advanced Options,  and check the "Select into Rows". Then do the same for ".", "," and "?". 

     

    Filter out all blank rows from your column. Each row will now be on a separate word.

     

    Now create a table with your stop words, e.g. create it in excel and import it, or by the "Enter data" functionality in Power BI/Power Query.

     

    Now make use of the Merge Queries-function in the Home-ribbon, and merge the to tables. The rows where there is a match between the two table will have a value, the others will be null. To make it easier to filter, add a new custom column like this:

    =if [Stop words.words] is null then 1 else 0

    and filter the table on this column = 1. After this filtering you can remove the merge column and the added column. Then only words which are not stop words will be loaded to your model.

     

    mockup-report

     

    Cheers,
    Sturla

    If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

     

    Mockup