Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I created a measure that simulates two columns with a percentage and (count). It works fine in the Desktop. But the web version removes the spaces. The obvious solution is to simply use two columns, but the request is to combine both values into one column...
Is there another UNICHAR I should use that won't get trimmed?
Please advise. Thank you!
_rm% =
VAR vRmPercent = CONVERT(ROUND(AVERAGE('200AttrRmCount'[rmPercent]), 2)*100, STRING)
VAR vLen = LEN(vRmPercent)
VAR vLenRm = LEN(CONVERT('200AttrRmCount'[_rmCount], STRING))
VAR vSpace = 8
RETURN
IF (vLen = 0, "n/a",
IF (vLen = 1, "0" & vRmPercent & "%", vRmPercent & "%" )
& REPT(UNICHAR(127), vSpace-vLenRm) & "(" & [_rmCount] & ")")
Solved! Go to Solution.
Hi @MarkusEng1998
Try to calculate 2 measures separately and just concatenate them in the basic way with space :
Final_measure = [measure1]&" "&[measure2]
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
@MarkusEng1998
Good luck, 99.99% it will work 🙂
Sorry, it did not work.
Can you share 2-3 in your pbix , i will check it on my machine ?
combined measure 2 & 3
_rem%Total = VAR vRmPercent = CONVERT(ROUND(AVERAGE('200AttrRmCount'[rmPercent]), 2)*100, STRING)
VAR vLenRm = LEN(CONVERT('200AttrRmCount'[_rmCount], STRING))
VAR vSpace = 8
RETURN
[_rm%2] &
REPT(UNICHAR(127), vSpace-vLenRm) &
[_rm%3]
measure 3
_rm%3 =
VAR vRmPercent = CONVERT(ROUND(AVERAGE('200AttrRmCount'[rmPercent]), 2)*100, STRING)
VAR vLen = LEN(vRmPercent)
VAR vLenRm = LEN(CONVERT('200AttrRmCount'[_rmCount], STRING))
VAR vSpace = 8
RETURN
"(" &
IF (vLenRm > 3,
LEFT([_rmCount], vLenRm-3) & "," & RIGHT([_rmCount], 3),
[_rmCount])
& ")"
measure 2
_rm%2 =
VAR vRmPercent = CONVERT(ROUND(AVERAGE('200AttrRmCount'[rmPercent]), 2)*100, STRING)
VAR vLen = LEN(vRmPercent)
VAR vLenRm = LEN(CONVERT('200AttrRmCount'[_rmCount], STRING))
VAR vSpace = 8
RETURN
IF (vLen = 0, "n/a",
IF (vLen = 1, "0" & vRmPercent & "%", vRmPercent & "%" ))
@MarkusEng1998
Good luck, 99.99% it will work 🙂
Hi @MarkusEng1998
Try to calculate 2 measures separately and just concatenate them in the basic way with space :
Final_measure = [measure1]&" "&[measure2]
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.