Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello,
Currently within my dataset there is a column that contains both numerical and text data types. Is it possible to convert the numerical data types to currency values while leaving the text data alone? Everytime I try to change the data type to currency Power BI states "We can't automatically covert the column to Decimal number type", or if I try to modify the data in PowerQuery it will list "Error" for the values with text data (i.e. 20m-30m).
Example
Amount
20m-30m
100548
100m
50m-75m
11479.2304
Output Wanted
Amount
20m-30m
$100,548
100m
50m-75m
$11,479
Sincerely,
Colt
Solved! Go to Solution.
You may add a calculated column as follows.
Column = IFERROR ( FORMAT ( CURRENCY ( Table1[Amount] ), "Currency" ), Table1[Amount] )
You may add a calculated column as follows.
Column = IFERROR ( FORMAT ( CURRENCY ( Table1[Amount] ), "Currency" ), Table1[Amount] )
I don't think that this is currently possible in Power BI. You could always try splitting your data into multiple columns, each with it's own datatype. It appears from your example that every third row is the same datatype. Hope this helps! --Christopher
Hi in Power BI (Pivot ou Power Query) a column only have one type. In some cases if we have numbers and text we always set column type as Text.
Hi in Power BI (Pivot ou Power Query) a column only have one type. In some cases if we have numbers and text we always set as Text.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
82 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |