Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Dynamic Titles in multiple lines

Hello All,

 

I have written a measure for creation of dynamic title as below.

 

Title by month For Plan Contri = IF(
ISCROSSFILTERED('Month Year'[LastMonth]),
"Plan Contribution "& FIRSTNONBLANK('Month Year'[Month Year], TRUE) &" ","Plan Contribution")

When i use it in card it shows as below image

 

 

 

Well i would like to show the month-year in new line, i.e below the Plan Contribution.

 

                                                   Plan Contribution

                                                         Apr-17

 

 

Any help.

Mohan V

 

  • Hi Anonymous,

     

    Currently, there seems no possible way to display a carriage return in a Card visual.

     

    However, as a workaround, you could turn on the "word wrap" function under the Card format tab. Then, decrease the width of card visual. The month-year part will be displayed on next line automatically.

    Best regards,
    Yuliana Gu

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    You can try using a Unicharacter.

    If you put off Word Wrap and you conditional format your title with the following measure it will work:

     

    Title by month For Plan Contri = IF(
    ISCROSSFILTERED('Month Year'[LastMonth]),
    "Plan Contribution " & UNICHAR(10) & FIRSTNONBLANK('Month Year'[Month Year], TRUE) &" ","Plan Contribution")

    The UNICHAR(10) stands for an "Enter" .

    Let me know if this worked for you?!

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi Anonymous,

     

    Currently, there seems no possible way to display a carriage return in a Card visual.

     

    However, as a workaround, you could turn on the "word wrap" function under the Card format tab. Then, decrease the width of card visual. The month-year part will be displayed on next line automatically.

    Best regards,
    Yuliana Gu