Forum Discussion
Balkrishnan
6 years agoHelper II
Column with two data types
I have an Excel Data set with a column like below Rent 4,525 3,750 ABC 4,100 2,500 When i load this data into Powe BI it is displayed without comma like below Rent 4525 3750 ABC 4100 250...
- 6 years ago
Hello Balkrishnan
The problem you are running into is excel does not actually store the comma. 4,525 is stored as 4525 and formatted with the comma. We can add a column to your table to format the numbers correctly though.
Rent Formatted = IF ( ISERROR ( VALUE ( Sheet1[Rent] ) ), Sheet1[Rent], FORMAT ( VALUE ( Sheet1[Rent] ), "#,#" ) )
jdbuchanan71
6 years agoSuper User
Hello Balkrishnan
The problem you are running into is excel does not actually store the comma. 4,525 is stored as 4525 and formatted with the comma. We can add a column to your table to format the numbers correctly though.
Rent Formatted =
IF (
ISERROR ( VALUE ( Sheet1[Rent] ) ),
Sheet1[Rent],
FORMAT ( VALUE ( Sheet1[Rent] ), "#,#" )
)