Forum Discussion
Issue resizing/formatting a Card visual.
Could someone please help me and tell me what i'm missing here.
I'm trying to resize a card which has both a callout and reference label (for context the callout contains a DAX with a value return alongside text - this is deliberate as I want the value embedded in the middle of the text).
The text (from the DAX measure) does not seem to be wrapping properly within the card. I've adjusted callout size, padding, made sure to enable "wrap text" options. It's still not formatting as expected.
Thank you in advance!
Hi JBIAISAK
Try this measure with Text wrap is switch on
Wrapped Text = VAR txt = [yourmeasure] VAR MaxLen = 30 VAR Chunks = GENERATESERIES( 1, CEILING(DIVIDE(LEN(txt), MaxLen), 1) ) RETURN CONCATENATEX( Chunks, MID( txt, ( [Value] - 1 ) * MaxLen + 1, MaxLen ), UNICHAR(10) )include your measure in the yourmeasure section and use wrapped text measure instead
I can't replicate this. No matter what I did, the callout value stayed within the card.
6 Replies
- Rupa01
Solution Sage
Hi JBIAISAK,
Modify below visual-level formatting -
Reference labels layout > Padding > Uniform padding or Individual padding based on the requirement.
Also refer this post if more formatting is required - Solved: New Card Adjusting Gap between Category Header and... - Microsoft Fabric Community
💡 Helpful? Give a Kudos 👍 — keep the community growing
✅ Solved your issue? Mark as Solution ✔️ — help others find it faster
Best regards,
Rupasree Achari | BI & Fabric Analytics Engineer- JBIAISAKNew Member
Hi, thank you for replying.
It's not the reference label that I need to adjust, it's the callout. I have also tried solutions in the post you linked, but to no success.
In the screenshot below you can see there is space for the callout value to keep going (without the need for an ellipsis) instead it just chooses not to. There's almost like an invisible gap between the callout and reference label. I've tried to see settings to remove this like the gap option is set to 0px but still not working.
Thanks
- kushanNa
Super User
Hi JBIAISAK
Try this measure with Text wrap is switch on
Wrapped Text = VAR txt = [yourmeasure] VAR MaxLen = 30 VAR Chunks = GENERATESERIES( 1, CEILING(DIVIDE(LEN(txt), MaxLen), 1) ) RETURN CONCATENATEX( Chunks, MID( txt, ( [Value] - 1 ) * MaxLen + 1, MaxLen ), UNICHAR(10) )include your measure in the yourmeasure section and use wrapped text measure instead
- danextian
Super User
I can't replicate this. No matter what I did, the callout value stayed within the card.
- v-abhinavmu
Community Support
Hi JBIAISAK,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to danextian & kushanNa & Rupa01 for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.
- v-abhinavmu
Community Support
Hi JBIAISAK,
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you