Forum Discussion
Card Text Now Only Center Aligned within the box?
I just downloaded the July version of Power BI Desktop. It appears as though that text dynamically generated via DAX in a measure in a Card visualization can only be centered aligned within the visualization "box" area? I'm sure I've left-aligned text in a measure before, but am coming up blank for where / how to do this again. Surely it's possible.
Note #1: I'm not referring to using the Align icon within the Format ribbon used to align the entire visual, just the text "inside.
Note #2: I'm also not referring to aligning the Title of the measure itself, just the dynamically generated text.
I'd appreciate any thoughts and guidance.
Thanks.
- Anonymous9 years ago
Anonymous,
There is no option that could be used to set the text alignment for data in Card visual. An idea of this issue has been submitted in this link, you can vote it up.
Additionally, you can create a Multi-row card instead, text is left-aligned in the visual.
Regards,
Lydia
17 Replies
- AnonymousNot applicable
Anonymous,
There is no option that could be used to set the text alignment for data in Card visual. An idea of this issue has been submitted in this link, you can vote it up.
Additionally, you can create a Multi-row card instead, text is left-aligned in the visual.
Regards,
Lydia- iyantaufikhNew Member
thanks Anonymous , I think this is a simple way, but really the exact way to solve my issue. Thanks
- AnonymousNot applicable
Anonymous,
Thanks. Voted up.
Jonathan
- SA_NYCAdvocate I
Multi-row card. Perfect. Thank you!
- SakshiKukrejaAdvocate I
Hi!
If you're still looking for an answer - You can use a blank button to achieve text alignment!
Steps -
1. Insert a Blank Button into the Dashboard and Go to Format Button
Under Text->Click on FX to pass the column that button will take value from :
Select the Column from the Table:
Switch the "Outline" Toggle off and Align the Text in the button as required.
I hope this helps!
Regards,
Sakshi Kukreja
- Sivakumar_HHelper I
as SakshiKukreja mentioned you can use Buttons or you can also use Shapes and change the default fill color blue into white, off borders, You have the Alignment option there! But one thing to remember either button or shape the text only accept Field value!!!
- AshkanJahanNew Member
this solution helped me and as you said we can have just text only field value and I formatted any measures in DAX that I want to use in this way and that worked. Thanks all
- DataMountainAdvocate I
As of November 2018 update, Having a single value in a multi row card causes default color customization within the "Data Label" well.
- EtooRegular Visitor
It is frustrating. But you can download Advance Card addin app. https://store.office.com/addinsinstallpage.aspx?rs=en-US&assetid=WA104381651
Anonymous wrote:I just downloaded the July version of Power BI Desktop. It appears as though that text dynamically generated via DAX in a measure in a Card visualization can only be centered aligned within the visualization "box" area? I'm sure I've left-aligned text in a measure before, but am coming up blank for where / how to do this again. Surely it's possible.
Note #1: I'm not referring to using the Align icon within the Format ribbon used to align the entire visual, just the text "inside.
Note #2: I'm also not referring to aligning the Title of the measure itself, just the dynamically generated text.
I'd appreciate any thoughts and guidance.
Thanks.
- JA9Regular Visitor
To give the appearance of left-aligned text, I have added a load of spaces to the end of my dynamic text. It is not a neat solution but at least it is simple.
- AnonymousNot applicable
You can use "Text Wrapper" from Market Place.
- Rishabh-MainiHelper II
Anonymous
Came across this article, and I think this is the best workaround for the alignment in a single value card.
https://www.havensconsulting.net/blog-and-media/how-to-apply-font-alignment-to-single-value-cards - RygaardResolver I
as of 2021 you still can not align the text in the cards
The problem with multirow cards is that you do not have controll over when it switch to show in one or two colums I WANT it only in one colum but as soon as i make it as wide as i want it... it starts to show in 2 Colums.
I have a Woring solution
1) make a text box (make background 100% transparent)
2) make a headline based on a formula (enter measure here)
3) left align the title of the text box !
- AnonymousNot applicable
When using the Card Visual as a changing headline or only showing first value, you can now use the Smart text/Smart narrative box to get the same effect but with text align options.
By only having a Value in the box you can left align the text/value.
- Meta_Data_NomasNew Member
This is a bit old, but I thought I'd add that the New Card visualization allowed me to aligned the text inside.