Forum Discussion
letizia
2 years agoFrequent Visitor
sorting
Hello, I have a formatted measure (so a text) which I want to sort by numerical value. My issue is that I have both negative and positive value, so even if I try to use 'UNICHAR' method adding "0" an...
- 2 years ago
Hello,
Instead of using the FORMAT function which returns text, have you tried dynamic format strings?
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings
Ahmedx
2 years agoSuper User
show me what you write, what doesn’t work for you, at least share screenshots
- letizia2 years agoFrequent Visitor
Here, from left to right: what I want to sort, measure I use, measure I'm trying to apply
- Ahmedx2 years agoSuper User
Insert this measure before positive numbers
REP(UNICHAR(8203),x).
and where are the negatives after them.
for example:
REP(UNICHAR(8203),x)&[positive]
[nigativ]&REP(UNICHAR(8203),x)
X is how many times to repeat- letizia2 years agoFrequent Visitor
Thanks but doesn't work because sorting depends from the total length of the string, no matter where 'unichar' is