March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I created a list of job titles using quick measure(List of Job Title Values), however, I need it to do a line break after each concatenation, how do I do that? I found unichar(10) might be able to solve this but I cannot seem to integrate it into the current measure. Would someone please help?
Desired Outcome
Sample Data:
Current Quick Measure:
Solved! Go to Solution.
Hi @Unknowncharacte ,
List of Job Title values =
VAR __DISTINCT_VALUES_COUNT = DISTINCTCOUNT('Subjects'[Job Title])
VAR __MAX_VALUES_TO_SHOW = 10
RETURN
IF(
__DISTINCT_VALUES_COUNT > __MAX_VALUES_TO_SHOW,
CONCATENATE(
CONCATENATEX(
TOPN(
__MAX_VALUES_TO_SHOW,
VALUES('Subjects'[Job Title]),
'Subjects'[Job Title],
ASC
),
'Subjects'[Job Title],
", ",
'Subjects'[Job Title],
ASC
),
", etc."
),
CONCATENATEX(
VALUES('Subjects'[Job Title]),
'Subjects'[Job Title],
", "&UNICHAR ( 10 ),
'Subjects'[Job Title],
ASC
)
)
As shown above what I did was to put in the UNICHAR ( 10 ) which would then put each item on a new line.
Below is what it looks like.
Reference:
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Unknowncharacte ,
List of Job Title values =
VAR __DISTINCT_VALUES_COUNT = DISTINCTCOUNT('Subjects'[Job Title])
VAR __MAX_VALUES_TO_SHOW = 10
RETURN
IF(
__DISTINCT_VALUES_COUNT > __MAX_VALUES_TO_SHOW,
CONCATENATE(
CONCATENATEX(
TOPN(
__MAX_VALUES_TO_SHOW,
VALUES('Subjects'[Job Title]),
'Subjects'[Job Title],
ASC
),
'Subjects'[Job Title],
", ",
'Subjects'[Job Title],
ASC
),
", etc."
),
CONCATENATEX(
VALUES('Subjects'[Job Title]),
'Subjects'[Job Title],
", "&UNICHAR ( 10 ),
'Subjects'[Job Title],
ASC
)
)
As shown above what I did was to put in the UNICHAR ( 10 ) which would then put each item on a new line.
Below is what it looks like.
Reference:
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, I was tacking it on in completely wrong places 😬
From this
To this
I appologize, I do not know what you mean, there is no blank after A12, CEO is in A13
Titles are all in one cell, separated by a line break and corresponding to the case #
Why is A12 followed by a blank? A12 does not have CEO is either table!
where do you see this?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |