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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
NBR_22
Frequent Visitor

Spell Check PowerBI

Hello,

 

I want to do spell check for each row in a column, is there a function or something that I can use to check spell check and return a false or true if the word is correctly spell?

 

Regards,

Nicolas Blanco

4 REPLIES 4
AmiraBedh
Super User
Super User

While I strongly believe that DAX first purpose isn't dedicated for such operation but here is an example :

The most simple way (especially of your data isn't huge) : 
You'd need a reference list (dictionary) of correctly spelled words. Create a relationship between your data table and this dictionary.

 

SpellCheck =
IF(
ISBLANK(RELATED('Dictionary'[Word])),
"False",
"True"
)

 




This will return "False" if the word does not exist in the dictionary, and "True" otherwise.Eventhough being easy, this approach only works for individual words and not phrases. Handling multi-word phrases or sentences would be much more complex.

 

Or you can use this API Spell Check (this is a thread about it https://stackoverflow.com/a/59588277)

You can also use a Python script : 

import pandas as pd
from spellchecker import SpellChecker

data = dataset

spell = SpellChecker()

data['IsCorrectlySpelled'] = data['YourColumnName'].apply(lambda x: x not in spell.unknown([x]))

output = data

or using R you may need to install the hunspell package : 

library(hunspell)

data <- dataset

# This will return a list where each element corresponds to a word from the input.
# TRUE means the word is correct, FALSE means it's not recognized.
correctly_spelled <- hunspell_check(data$YourColumnName)

data$IsCorrectlySpelled <- correctly_spelled

output <- data

Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
mlsx4
Memorable Member
Memorable Member

Hi @NBR_22 

 

As far as I know there's no easy way. Probably, you can take a look at this solution and see if it applies to you: https://www.youtube.com/watch?v=W-iy9IQ76Gg

 

pmreis
Most Valuable Professional
Most Valuable Professional

Hi @NBR_22 

Natively there isn't a way to do it as per my knowledge. However you can create a custom function which uses a spell checking API. 

For instance, using the Bing Spell Check API:

  1. Sign up for the Bing Spell Check API and get your API key.
  2. Create a custom function in Power Query to call the API.
  3. Invoke the custom function on each row

    Here is some sample code, auto generated by AI, I didn't test it:

 

let
    CheckSpelling = (word) => 
    let
        apiUrl = "https://api.cognitive.microsoft.com/bing/v7.0/spellcheck?text=" & word,
        headers = [#"Ocp-Apim-Subscription-Key" = "Your_API_Key_Here"],
        source = Json.Document(Web.Contents(apiUrl, [Headers=headers])),
        result = source[flaggedTokens] // Check if there are any flagged tokens
    in
        List.IsEmpty(result) // Returns true if the word is correct, false otherwise
in
    CheckSpelling​



 


Pedro Reis - Data Platform MVP / MCT
Making Power BI and Fabric Simple

If my response resolved your issue, please mark it as a solution to help others find it. If you found it helpful, please consider giving it a kudos. Your feedback is highly appreciated!

Find me at LinkedIn
NBR_22
Frequent Visitor

@pmreis Thank you for your response, will this require a PowerBI Premium License? Currenltly using the PowerBI RS Version.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.