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
EugeEPL
New Member

Power Query and Power Bi loads do not match

Hello,

I looked at the forum and couldn't find a response, so here goes:

On first time load of a txt file, the first screen (power query) before clicking on 'load' shows me the data correctly, as follows:

 

DateDebitCredit
01/01/22120
01/01/220123
01/01/22055
02/01/22450

 

Once I click on load, in the models it shifts all the numbers on the credit column to debit, leaving the credit column with only 0s:

DateDebitCredit
01/01/22120
01/01/221230
01/01/22550
02/01/22450

How can I fix that? Is it due to the type of encoding of the txt file?

Thank you

3 REPLIES 3
EugeEPL
New Member

@Mikelytics thank you for your answer.

 

I feel really dumb! When taking screenshots to show you the issue, I found the problem. The data was not being shifted when loading, it was being sorted in a way that all the debits showed first (chronologically) and then all the credits, as opposed to just having a chronological table (based on column A) as in power query / excel.

Earlier, I had scrolled down to see if there were any debits and I only saw only 0, so I assumed they were shifted, but I needed to scroll down 5000 rows before seeing them.

 

SO sorry for wasting your time, it was only a sorting issue!

Mikelytics
Resident Rockstar
Resident Rockstar

Hi @EugeEPL 

 

This sounds strange, Is it possible to show this error with screenshots in Power QUery and Desktop?

 

Best regards

Michael

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
EugeEPL
New Member

Edit: I tried opening the file with excel and not problem there, no replacement of 0 in the debit colum with data from the credit column. I also tried to load the same txt file in a csv and again no issue in excel directly or through power query, but data gets shifted when loading to power bi.

What am I doing wrong? Please help

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.