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
Anonymous
Not applicable

Enter a data validation in a Power BI or Power Query query

I would like to know if it is possible to perform a validation of data of a column in a query to verify if the data is correct and to change the incorrect data by the correct data.

Thank you very much and greetings
.

1 ACCEPTED SOLUTION

my suggestion is that you do a merge in power query  with your list that you want to validate against the list that has the valid numbers using an anti join to pull back all the non matching values which dont match.

more explanation here.

http://radacad.com/how-to-change-joining-types-in-power-bi-and-power-query

 

 

in terms of your list for correcting the numbers, how many correct values do you have, this part is probably going to be more complicated depending on how much data you have, i guess you would need to find where the smallest difference is between  the invalid number and a valid number but how to do that exactly , not sure maybe someone else can assist there.

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
vanessafvg
Super User
Super User

can you give more details as in what exactly you would like to validate and what action to take if it isn't?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hello Vanessafvg,

 

I have a query like the following:Respuesta check.jpg

 

I want to verify that each of the values that are in that column are in a list of unique values, and if some of those values are not in the list of unique values, those values are replaced by the closest value.

For example, if 46500000 is not a correct value, all 46500000 in that column are replaced by 462000000.

Thank you very much and greetings.
 

my suggestion is that you do a merge in power query  with your list that you want to validate against the list that has the valid numbers using an anti join to pull back all the non matching values which dont match.

more explanation here.

http://radacad.com/how-to-change-joining-types-in-power-bi-and-power-query

 

 

in terms of your list for correcting the numbers, how many correct values do you have, this part is probably going to be more complicated depending on how much data you have, i guess you would need to find where the smallest difference is between  the invalid number and a valid number but how to do that exactly , not sure maybe someone else can assist there.

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hello Vanessafvg,

 

Thanks you very much for your explanation.

 

Best regards.

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.