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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Datahungry
Frequent Visitor

Verifying files for errors before import into PowerBI

Hi everyone,

 

I am using a folder as the "source data" for a power bi report. This folder is supposed to contains multiple files, all using the same columns, so that PowerBI can merge them properly.

 

However, users are making the following mistakes:

- entering two records with the same primary key in the same file

- creating records for which there's no dimension (ex: Sales for Customer XYZ, when there's no customer XYZ in the corresponding Dimension table.

 

Is there a way to verify files before import, to make sure no errors exist in the data, a get a list of errors to address? Specifically

- Identify duplicate primary keys.

- missing dimensions

- Identify wrong datatype (ex: text where there should be date)

- files with mismatching columns

 

Thanks in advance

 

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @Datahungry,

Based on my research, I am afraid you could not achieve these features currently, you could summit an idea in ideas forum:

https://ideas.powerbi.com/forums/265200-power-bi-ideas

Or you could use the query editor in Power BI Desktop to clean your data before you import your data to the data model:

https://docs.microsoft.com/en-us/power-bi/guided-learning/gettingdata?tutorial-step=4

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Datahungry
Frequent Visitor

Understood. Thank you for your support.
v-danhe-msft
Employee
Employee

Hi @Datahungry,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Employee
Employee

Hi @Datahungry,

Based on my research, I am afraid you could not achieve these features currently, you could summit an idea in ideas forum:

https://ideas.powerbi.com/forums/265200-power-bi-ideas

Or you could use the query editor in Power BI Desktop to clean your data before you import your data to the data model:

https://docs.microsoft.com/en-us/power-bi/guided-learning/gettingdata?tutorial-step=4

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Might be able to do something like that in R or Python perhaps. Are you thinking a pre-process or as part of the query?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Right now I have no solution, so either would be helpful Smiley Happy

 

Is it possible to accomplish both?

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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