Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ompowerbi
Helper I
Helper I

Formatting a number as a multiple with an "x" at the end - 0.00x

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!

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

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?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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

FreemanZ
Super User
Super User

hi @ompowerbi 

you can add a calculated column with

FORMAT([Number], "0.00x")

Then sort the new column by the original number column.

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

 

 

OwenAuger
Super User
Super User

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?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.