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
danextian
2 years agoSuper User
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
- letizia2 years agoFrequent Visitor
Hello ,thanks but I don't understand: does dynamic format string allows to treat measure as number and not as text?
- danextian2 years agoSuper User
Hi letizia ,
with dynamic format string you are basically applying a format to a number but not changing its data type so it will still be treated as a number that just appears in either in percentage, currency, etc.
- letizia2 years agoFrequent Visitor
Hello, thank you, it works.