Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm trying to add a line break in a concatenated text strong and have tried
<br/>
"<br/>"
UNICHAR(10)
and cannot get it to work. Does anyone know how?
Here's the expression:
Last Refresh =
CONCATENATE("Last Refresh: " & FORMAT (MAX('Last Refresh Local Time'[Last Refresh Local Time]), "mm/dd/yyyy at HH:MM:SS")
& UNICHAR(10) &
"Latest Service Ticket: ", FORMAT(MAX('ServiceTicket'[Create Date]), "Short Date"))
This results in:
Last Refresh: 03/22/2018 at 13:54:12 Latest Service Ticket: 3/21/2018
I want:
Last Refresh: 03/22/2018 at 13:54:12
Latest Service Ticket: 3/21/2018
Thanks for any help!
Solved! Go to Solution.
I finally figured this out! The formula I had was correct.
Last Refresh =
CONCATENATE("Last Refresh: " & FORMAT (MAX('Last Refresh Local Time'[Last Refresh Local Time]), "mm/dd/yyyy at HH:MM:SS")
& UNICHAR(10) &
"Latest Service Ticket: ", FORMAT(MAX('ServiceTicket'[Create Date]), "Short Date"))
However, in order to have it work, I had to go to the paint roller (format) section and turn Word Wrap ON.
Just to add to this thread, if using this (mad genius) technique in an x-measure, you just put in UNICHAR(10) in the delimiter field, as in,
I finally figured this out! The formula I had was correct.
Last Refresh =
CONCATENATE("Last Refresh: " & FORMAT (MAX('Last Refresh Local Time'[Last Refresh Local Time]), "mm/dd/yyyy at HH:MM:SS")
& UNICHAR(10) &
"Latest Service Ticket: ", FORMAT(MAX('ServiceTicket'[Create Date]), "Short Date"))
However, in order to have it work, I had to go to the paint roller (format) section and turn Word Wrap ON.
Hi @Shelley ,
Where were you using this data?
Being able to use a linebreak like this would be useful for me too, but I'm trying to use it on a column which I'm using for an x axis for a visualisation.
I couldnt see a word wrap option for the x axis 😕
Hi @CYParker ,
Did you able to get solution for your problem?
If yes please let me know the solution.
Hi @Shelley,
Thanks for getting back to me and sharing what you learnt.
I was trying to get it to work for use in an X axis on a graph but it doesnt seem to work for that.
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |