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
maqsud
Helper III
Helper III

How to get WordCloud Blank under certain condition?

I have survey data. I had made the WordCloud from comment responses from the Survey. 

 

Following is the table: 

'data'

EmpIDLocationFunctionTenureGenderComment
1ChennaiCorporate1-2 yearsFemaleToo informal at home
2DelhiAgency0-1 yearsMaleTo informal at home
3MumbaiCorporate2-5 yearsMaleOvercoming the urge to take nap.
...................
101MumbaiLogistics1-2 yearsMaleWork from Home not possible

 

 

Following is the measure of No. of Response card = COUNTROWS(data)

 
Below is the snap of my WordCloud Dashboard:
 

Capture.JPG

 

Following is the representation after drilling down to less than 5 No of Response :

Capture1.JPG

 

Expected Outcome: I want WordCloud to be Blank or throw some error after getting No of Response less than 5 as in the above case.

 

Your help is highly appreciated. Thank you!

1 ACCEPTED SOLUTION

@maqsud 

This is relatively simple fix. Set your word cloud up again so that it is behaving as you want without the filters, so putting Comments back in the Category and count comments in the value.

 

The reason the filter shows an empty word cloud is because TotalResponse is a measure that changes based on the Word Cloud comments, so in the context of the Word Cloud, TotalResponse is always 1 (which is ALWAYS less than or equal to 5) and therefore your Word Cloud is always blank. 

 

Try updating your TotalResponse measure to look like something like this: 

 

TotalResponse= CALCULATE(COUNTROWS('data'), ALL('data'[Comment Columns]))
 
Then, as we discussed before, add the TotalResponse as a filter to the Word Cloud visual for TotalResponse >5. 
 

Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 


If you found this post helpful, please give Kudos.

I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@maqsud , The way I can think of is switch visual based on Count Value, see if bookmark can help

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

@amitchandak, The Above article, is for using Button and Bookmark. And I am looking for Visual Level Filter or some measure

Create two-measure one with Text and one you measure. Check the value of your measure a display value of another measure. But Only thing it will give data type issue 

Change the measure without slicer based on value

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

@amitchandak, I have added two measure as follows into WordCloud. But still getting Blank WordCloud. 

 

Text Measure into values of WordCloud

 

TextMeasure = CONCATENATEX(data,data[Comment Columns]," ")

 

 

 

No of Response measure into Visual Filter of WordCloud by 

 

TotalResponse = COUNTROWS(data)

 

 

 

Capture1.JPG

 

Thank you!

AllisonKennedy
Super User
Super User

@maqsud  Add the No of Response measure as a filter to the word cloud visual, set that to show items when value is greater than 5.

 

Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 

 

If you found this post helpful, please give Kudos.

I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 

https://sites.google.com/site/allisonkennedycv

 

 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy I added No of Response measure as a filter to the word cloud visual with show items when the value is greater than 5.

 

But I am not getting any words even after having No of Response greater than 5.

 

Capture.JPG

@maqsud 

This is relatively simple fix. Set your word cloud up again so that it is behaving as you want without the filters, so putting Comments back in the Category and count comments in the value.

 

The reason the filter shows an empty word cloud is because TotalResponse is a measure that changes based on the Word Cloud comments, so in the context of the Word Cloud, TotalResponse is always 1 (which is ALWAYS less than or equal to 5) and therefore your Word Cloud is always blank. 

 

Try updating your TotalResponse measure to look like something like this: 

 

TotalResponse= CALCULATE(COUNTROWS('data'), ALL('data'[Comment Columns]))
 
Then, as we discussed before, add the TotalResponse as a filter to the Word Cloud visual for TotalResponse >5. 
 

Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 


If you found this post helpful, please give Kudos.

I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.