Forum Discussion
Boetheus
4 years agoNew Member
Visualize large data model of decimal data mixed with text (n/a, n<10)
I am relatively new with PowerBi. I have loaded and performed basic formating, cleanup and created visuals. I want to visualize some state wide school data where with over 90 columns of decimal ...
DataInsights
Super User
4 years ago
If you want to replace only "N/A" and "N<10" with null, try this:
RemoveText = Table.TransformColumns(
Source,
{"Total Pct Met", each if List.Contains({"N/A", "N<10"}, _) then "" else _}
)
If you want to replace all text values with null, try this:
RemoveText = Table.TransformColumns(
Source,
{
"Total Pct Met",
each
if
let
result = try Number.From(_) otherwise "Text",
resultType = if result = "Text" then "Text" else "Number"
in
resultType = "Text"
then
""
else
_
}
)
Sample data:
Result: