Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.