Forum Discussion

threw001's avatar
threw001
Helper III
1 year ago
Solved

Running Total Power Query working fine but missing data when loaded to PowerBI Model

Hi guys, I have created a query that calculates a running total based on categories. This query is running fine on Power Query however once I load the data into PowerBI data model I get blanks in my...
  • SamInogic's avatar
    1 year ago

    Hi,

     

    Based on our understanding, you are experiencing an issue where the running total column works fine in Power Query but shows missing data when loaded into the Power BI model.

    This discrepancy between Power Query and Power BI is often due to how Power BI handles data once it's loaded into the data model. Here are some possible reasons and solutions:

    1. Check for Filters in Power BI

    Power BI visuals (tables or charts) might have filters applied by default, causing certain rows to not display properly.

    • Check for filters: Open the Filters pane in Power BI to see if there are any filters applied that might exclude rows.
    • Remove any unnecessary filters to see if that resolves the issue.
    1. Missing Data or Incomplete Loading

    There could be an issue with how the data is being loaded into the model from Power Query. It’s possible that the data was only partially loaded, which might explain why certain running totals are missing.

    • Reload the data: Click on Home > Refresh in Power BI to reload the dataset and ensure all rows are properly loaded.
    • Ensure proper data refresh settings: Sometimes Power BI may not refresh all queries, so ensure everything is fully up to date.
    1. Data Type Mismatch

    In Power Query, the data might appear correct, but Power BI could interpret the "Index" or "Running Total" columns with the wrong data type.

    • In Power BI, go to Model View and verify that both the Index and Running Total columns are set to the correct data types (e.g., whole number for "Index" and decimal number for "Running Total").
    • If they are incorrect, change the data types and reload the data.
    1. Auto-Aggregation

    In Power BI, columns may be automatically aggregated, causing some values to appear as blanks in tables or other visuals.

    • Disable aggregation:
      • Click on the "Running Total" column in the Fields pane.
      • Under Properties, make sure Summarization is set to Do Not Summarize.
    1. Check Power Query Steps
    • Revisit your Applied Steps in Power Query to ensure that no transformations are being inadvertently dropped or altered when loading into Power BI.
    • Specifically, ensure that no step is adding nulls or blanks to your running total column.
    1. Re-import the Data

    If none of the above methods work, try reloading the query completely:

    • Go to Power Query Editor, and ensure everything is correct.
    • Re-load the dataset into Power BI by using Close & Apply.

    Thanks!