I managed to build a metric with text in a card, but resulted too long and when applying Word Wrap it doesn't appear to be working.
My card shows like this:
I know this post is pretty old, but figured I'd add my workaround for anyone else who stumbles across this like I did.
The workaround I've found is to use a text box and add dynamic values, which I think is somewhat recent addition based on my searchs. You can add dynamic values into your text box using any fields or measures created, or even do math directly in the text box. For example I was recreating a ratio, so I just divided the 2 fields I needed, without having to create a measure.
Then all you need to do is format the text box the same way as the scorecard (or however you want, actually could probably have more flexibility and options with look and feel, with the same outcome) and looks pretty much the same as a score card, without having to group a text box on top of the score card, or using the title instead of category label as others of suggested.
Also finding this now, still with no fix.
There is no logic to this - If Text wrap is avilable for the value, sense would dictate that it is avail;able for the label as well... If using this for numeric values likelihood is your label will be bigger than the value and you would want to wrap. On the flip-side if using this for text values yo would need it there also. Can you not just make it work and add the option to both?
Something I'm finding more as I go into PowerBI is that you've thought of all the complex things and none of the basics. Some visuals have options and others just seem to be half finished and not thought through. Even standard issue Microsoft fonts aren't available after how many years? Why would you not take all the basic features you have refined over 20+ years of MS Office such as formating options or Windows font library and apply them here?
I know - it physically hurts me when this stuff is overlooked 😖. Got a simple work around going by removing the label entirely and mashing a textbox underneath but it isn't the prettiest in terms of spacing/padding... Lucky I don't need a dynamic label.
I think I have the same issue still. I can check on/off the card visual but the function is not working.
I used the Custom Visual instead from MAQ Software "Text Wrapper".
I cannot believe this is still an issue!!! Micrsoft, it is ridiculous this visual will still not wrap the category text. How about improving visuals that havent been touched in years and a few less of the fancy ones that people rarely use.
This is a really old thread, but happens to be a question I have now. Any way to wrap the text for a measure / field in a card? This is not useful as it stands. I tried 'Cards with States' but no love there either.
The built-in standard Card Visual that comes with PBI does not allow the Category Label to wrap!
However this option exists in the Card with States Visual (probably the most used Custom Visual)
This visual is highly customizable - give it a try!
@Vicky_Song, this can't possibly be "By Design." This reduces the value of the Card visualization as you now can't use it for displaying text returned from a DAX measure. The fact that the data label wraps is even more troubling as I can't think of a reason I'd need the data label to wrap. The support email I had received suggested a bug was filed.
Looks like I'll have to rally people via UserVoice and log support tickets to fix a bug.
@trebgatte, thanks for this information. Maybe there is somewhere wrong I need to figure out as we got mismatch info. Would you mind sharing me your ticket ID so I can reach out the engineer who helped you to have a double confirmation?
@Vicky_Song Any more information about this issue??
I get my data from Project Online and I got fields with text including HTML tags for next line. I need to have a way to present this text. The closest I have come is by using the LongTextViewer custom visual. Unfortunately though this visual doesn't support HTML tags.
There is text wrap in the query editor for some weird reason and HTML tags are also recognised. But this isn't true outside of the query editor.
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!