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
FrankvanDorp
Helper I
Helper I

Word Cloud 2.0.0 giving the wrong values

See the screenshot belowe for reference.

I'm using the Word Cloud custom visual, version 2.0.0, to generate word clouds from text fields. However, the values are wrong. The table below has ten values and the word "snake" appears 7 times, 5 times as "snake" and 2 times as part of "rattle snake".

 

However, when mousing over the word "snake" in the word cloud, it only gives a value of 2, not 7. Apparently, instead of counting the number of times the word occurs in the column, it only counts the different unique entries in the column, so it counts it once for "snake" and once for "rattle snake".

 

I obviously want the word cloud to just give me the total number the word snake appears, which is 7. Is there a way to get the word cloud to stop removing duplicates and just count the total number of times the word occurs?

 

FrankvanDorp_0-1679485276092.png

 

1 ACCEPTED SOLUTION

New to Power BI and had the same issue as you.  The way I fixed it was by creating a field (I just named it WordCloud but you could name it anything) with the value of 1 for every record (did it with the create new column option in Power BI).  I then put this in the "Values" field as you can see in the picture below and bingo it now work how I'd expect it to work.

 

 

 

 

SRanger_0-1694816541581.png

 

SRanger_1-1694816711505.png

 

 

 

View solution in original post

6 REPLIES 6
FrankvanDorp
Helper I
Helper I

I'm still looking for a way to fix this, can anyone help me out?

New to Power BI and had the same issue as you.  The way I fixed it was by creating a field (I just named it WordCloud but you could name it anything) with the value of 1 for every record (did it with the create new column option in Power BI).  I then put this in the "Values" field as you can see in the picture below and bingo it now work how I'd expect it to work.

 

 

 

 

SRanger_0-1694816541581.png

 

SRanger_1-1694816711505.png

 

 

 

That is a great workaround, thanks!

Greg_Deckler
Super User
Super User

@FrankvanDorp It's likely an artifact of how Power BI presents data to external visuals. You get the same thing with R and Python visuals because Power BI "helpfully" deduplicates the data (passes only distinct values). Which, of course, is not really helpful at all because it's just munged your data without asking and now that data is pretty much useless for things like Word Clouds and most other things.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I only now noticed I forgot to @ you in my reply. Apologies. But is there a way to stop PowerBI from automatically removing these duplicates?

Thank you for the explanation of what goes wrong, but is there a way to fix it? Can I maybe fool PowerBI in some way that it doesn't pass only distinct values?

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.