Forum Discussion
How to change column format?
- 9 years ago
Hi raymondxie,
Using this formula: Column = format('TableName'[ColumnName],"###-###-###") , you can format the field to display as "xxx-xxx-xxx". But you should note that the data type of this field will be changed to Text rather than number.
Besides, it is not allowed to format the field styles (font and size, ...).
Best regards,
Yuliana Gu
Alright, I figured it out, after the Data Type of the text field is changed from text to Whole Number and the Format changed from Text to Whole Number, the field is displayed as a whole number in text.
My new question is:
In Power BI, is there anything like custom format? I want to show the field in the format of: xxx-xxx-xxx, how can I do it? what about the styles (font and size, ...)?
Thank you
Hi raymondxie,
Using this formula: Column = format('TableName'[ColumnName],"###-###-###") , you can format the field to display as "xxx-xxx-xxx". But you should note that the data type of this field will be changed to Text rather than number.
Besides, it is not allowed to format the field styles (font and size, ...).
Best regards,
Yuliana Gu