cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

1.PNG

 

 

 

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

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft
Microsoft

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.

1.PNG

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
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
Microsoft
Microsoft

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.

1.PNG

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors