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

Power Query Table != Power BI Table

Hi,

 

 

I have a table loaded in 3 different places in one Power BI file:

1) In Power Query - produces expected results

2) In Power BI Data Table views - produces expected results

3) In Power BI Visualizations as a table - produces incorrect results

 

I have taken several steps to try to identify why this is occuring:

1) Removed all relationships

2) Removed all calculations, only using columns

3) Only using columns from this one table, removed any relational columns

 

This issue manifests itself in two ways:

1 - In tables 1), 2), I can see ex. record #135,093. In Table 3) that record is gone.

2 - In tables 1), 2), record ###,### clearly maps to a value like "LK". In Table 3) that same record may map to ZC, DF, etc

 

How in the world is it possible to have a single table, no relationships, no measures, just pulling the columns, and for there to be a schism in the data like this? I would provide the file but the data is sensitive.

 

Thanks to anyone who can shed light on what this might be.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Replicated the query on a csv extract, no problems if it's a connection to csv. Something with the connection/connector is bugged.

View solution in original post

Anonymous
Not applicable

It turns out that this particular connector repulls the query at each applied step, and as the query randomizes the data pull every time it breaks the order of items. The solution is to sort at the very top of the query to lock the sort order. This negatively impacts query refreshing and editing quite a bit so heads up on that. 

View solution in original post

8 REPLIES 8
v-cherch-msft
Employee
Employee

Hi @Anonymous

 

In table visual, you may check the aggregate for the values. Below is the document about it for your reference. If it is not your case, please share more details about your scenario or send me the file via private message.

https://docs.microsoft.com/en-us/power-bi/service-aggregates

1.png

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Cherie,

 

You're partially right, I realized yesterday that Power BI automatically changed that column input to sum. Previously, I believe Power BI would change the field name to "Sum of {FieldName}". After changing it, I was able to find the record, this solves issue #1.

 

The second issue eludes me however. To give more details - I generate a key involving several columns. For ex:

- Key = Concatenate(ColA, ColB) (not with this syntax though), and I can see the key generated.

- Given the following inputs:

-- ColA, Row1 = 06

-- ColB, Row1 = "RZ"

-- Key = 06RZ

 

If I filter on just this key in Power Query, every seems fine. I load it and look at it the the data tables, everything seems fine. Then I bring the columns into a Power BI table visual and suddenly 06RZ maps to other ColB values like NT, CV, etc.

 

Yesterday I was working on solving this problem, then I copied the faulty table to a new tab and suddenly it seemed fine!! Then I went back to the old tab and that one was fine too! Then I proceeded to work more on it and suddenly they were all broken again. Sometimes, I'll recieve a "not enough memory to display" error, so perhaps it's a bug related to limited memory. I'll proceed with that idea and I have a couple more troubleshooting ideas but I've been troubleshooting this one issue for over 21 hours now. 

HI SBuri,

 

Please try increasing the data cache to the maximum limit possible depending on the space in your local machine.

As far as I know if set more than 8 GB, there should ne no issue regarding memory.

 

Navigation: File -> Option & Settings -> Options -> Data Cache Management Options (Increase this to more than 8 GB)

 

Regards,

Saurabh Kedia

 

Data Cache.PNG

Anonymous
Not applicable

Thank you,

 

I did try this, unfortunately it didn't resolve the error. I'm not dealing with too much data from what I've heard. 19.3mill rows and I've read of people dealing with over 100mill so I wouldn't jump to a memory error conclusion except for the table suddenly fixing itself.

 

A couple developments.

1) I rebuilt the same data structure using a small set of dummy data and it works flawlessly.

2) I discovered that in Power Query now things are loading correctly. For instance 02LD maps to ColA 02, ColB "LD", and this traces back to key 1 correctly. However, when I save and load this past Power Query and look at key 1 in the data tables it shows completely different values like 79RR instead of 02LD. I'm completely confused as to how these two could conflict with one another outside of a bug. I mean after I press Save and Load from Power Query the data table should be the same in both places right? 

Anonymous
Not applicable

I believe this is some error with PBI. I don't think there is any logical reason the values would be completely correct in Power Query, and then when saving and loading the values would shift to be incorrect, such that key 0 maps to value LZ in PQ, but key 0 maps to CW in the PBI data table after saving and loading from Power Query.

Anonymous
Not applicable

I also discovered Power BI is changing the sort order for every single step in Power Query, even though each step is not giving a sort command.

Anonymous
Not applicable

Replicated the query on a csv extract, no problems if it's a connection to csv. Something with the connection/connector is bugged.

Anonymous
Not applicable

It turns out that this particular connector repulls the query at each applied step, and as the query randomizes the data pull every time it breaks the order of items. The solution is to sort at the very top of the query to lock the sort order. This negatively impacts query refreshing and editing quite a bit so heads up on that. 

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.

Top Solution Authors