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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
jguercio
Frequent Visitor

Power Query data does not match the Power BI loaded table

Hi All,

 

I noticed a mismatch in the data from the Power Query and the loaded table in Power BI. Upon further investigation, things became stranger...

All I am attempting is to do is pivot a column in Power Query without aggregation and load it into PBI. The data is correct in Power Query and not in PBI as these screenshots illustrate. I am not using any DAX in the PBI loaded table and it is not related to anything else in the model (yet).

 

jguercio_0-1604504567278.png

 

Further, when I filter the user in the question above in Power Query to only load that user row in PBI, the row completely changes...

jguercio_1-1604504956580.png

 

I have no idea what is going on or how much of the data is impact. Below is the full M Code for the Power Query.

 

 

let
    Source = #"Source Data",
    #"Removed Other Columns" = Table.SelectColumns(Source,{"Date", "User", "Daily Unique ID", "Event Type"}),
    #"Added Custom" = Table.AddColumn(#"Removed Other Columns", "Event Value", each 1),
    #"Changed Type" = Table.TransformColumnTypes(#"Added Custom",{{"Event Value", Int64.Type}}),
    #"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[#"Event Type"]), "Event Type", "Event Value"),
    #"Replaced Value" = Table.ReplaceValue(#"Pivoted Column",null,0,Replacer.ReplaceValue,{"Screening & Sign-In", "Screening Only", "Sign-In", "Other"})
in
    #"Replaced Value"

 

 



1 ACCEPTED SOLUTION
edhans
Super User
Super User

@jguercio - Two things:

  1. this is actually kind of normal. Power Query often works with locally cached data but when it loads it to Power BI, it is always pulling the latest info, and does not always update its own cache. So you can go back into Power Query and still see stale results. If this is the case, in Power Query, click the Refresh All menu.
    1. edhans_0-1604508660796.png

       

  2. If that doesn't fix the issue, go into options and clear the Power Query cache and try #1 above again.
    1. edhans_1-1604508724558.png

       



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

@jguercio - Two things:

  1. this is actually kind of normal. Power Query often works with locally cached data but when it loads it to Power BI, it is always pulling the latest info, and does not always update its own cache. So you can go back into Power Query and still see stale results. If this is the case, in Power Query, click the Refresh All menu.
    1. edhans_0-1604508660796.png

       

  2. If that doesn't fix the issue, go into options and clear the Power Query cache and try #1 above again.
    1. edhans_1-1604508724558.png

       



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors