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
pontushaglund
Helper I
Helper I

Using FORMAT destroys table/matrix alignment

I have a "varible" measure that uses SWITCH to decide what measure to show in a table. In the case of YoY% versus VTB I want the result to be percentage rather than Whole number with thousand separator. Using the FORMAT everything gets left-aligned in the matrix (and table) visuals rather than right-aligned (which looks a lot better for numbers).

Am I missing something?

 

Thanks in advance,

 

Pontus

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@pontushaglund wrote:

I have a "varible" measure that uses SWITCH to decide what measure to show in a table. In the case of YoY% versus VTB I want the result to be percentage rather than Whole number with thousand separator. Using the FORMAT everything gets left-aligned in the matrix (and table) visuals rather than right-aligned (which looks a lot better for numbers).

Am I missing something?

 

Thanks in advance,

 

Pontus


@pontushaglund

I think it is all by design. Using FORMAT converts data to text type. text is left-aligned while numbers are right aligned.

View solution in original post

3 REPLIES 3
NandyFPS
Frequent Visitor

Using format will convert to text and you may not be aware but you will also not be able to plot the resulting values to any charts. You can use the new Dynamic format type located in measure tools to the same effect, however this will format without converting to text and hence allow plotting to charts!

walnorez
Regular Visitor

Yes, the FORMAT transforms numbers to text format, but you can still align it to the right. 

Go to Format your visual tab >> Specific column >> choose the column where you use FORMAT function and choose alignment that you need (to the right in this example). 

Done

Eric_Zhang
Microsoft Employee
Microsoft Employee


@pontushaglund wrote:

I have a "varible" measure that uses SWITCH to decide what measure to show in a table. In the case of YoY% versus VTB I want the result to be percentage rather than Whole number with thousand separator. Using the FORMAT everything gets left-aligned in the matrix (and table) visuals rather than right-aligned (which looks a lot better for numbers).

Am I missing something?

 

Thanks in advance,

 

Pontus


@pontushaglund

I think it is all by design. Using FORMAT converts data to text type. text is left-aligned while numbers are right aligned.

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.