Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have numbers where I want to add an "x" at the end. I understand I can format this as FORMAT([Number], "0.00x"), however, this changes the data type to text whereas I still want this to be treated as a decimal number as a data type. If I try and order this number by size, Power BI instead orders them as text, i.e. by the order of the first number - 1,2,3,4.... Is there a way to format numbers in this way (0.00x) whilst maintaining the data type as an integer?
Thanks for your help!
Solved! Go to Solution.
Hi @ompowerbi
You can apply the same format string you passed to the FORMAT function as a measure format string instead.
See here
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
Does that work for you?
Hi @ompowerbi,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
hi @ompowerbi
you can add a calculated column with
FORMAT([Number], "0.00x")
Then sort the new column by the original number column.
Hi @ompowerbi
You can apply the same format string you passed to the FORMAT function as a measure format string instead.
See here
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
Does that work for you?
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |