Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Boetheus
New 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 testdata_powerbi.PNGdata where with over  90 columns of decimal data mixed with either N/A or N<10 or both. I need the data type to be decimal and not text. How I handle or represent the (N/A) and the (N<10) that exist in practically every column across the entire model?

1 REPLY 1
DataInsights
Super User
Super User

@Boetheus,

 

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:

 

DataInsights_0-1661715219910.png

 

Result:

 

DataInsights_1-1661715246487.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.