The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi
I have an issue with converting the data type of a column. The column contains numeric values (decimals) and one text value (NA). I want to keep the NA's as that accurately represents the nature of the data. However, when I try to convert this column to fixed decimal, it returns an error for all text values.
Is there a way that I can keep NA's and convert numeric values into fixed decimal type?
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
Just as what @az38 mentioned, it is not supported in Power BI.
One workaround, create a measure like so:
Measure =
VAR Data_ = SUM('Table'[Column1 - Copy])
RETURN
IF(ISBLANK(Data_),"N/A",Data_)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Hi @Anonymous ,
Just as what @az38 mentioned, it is not supported in Power BI.
One workaround, create a measure like so:
Measure =
VAR Data_ = SUM('Table'[Column1 - Copy])
RETURN
IF(ISBLANK(Data_),"N/A",Data_)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
@Anonymous no, there is no such way to get text value as any number
@Anonymous , one idea is to extract number from it and mark the new column as decimal column. You have to add code to get decimal too
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
77 | |
76 | |
43 | |
37 |
User | Count |
---|---|
157 | |
114 | |
64 | |
60 | |
55 |