• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Renamed query - strange behaviour in data model|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Renamed query - strange behaviour in data model|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryRenamed query - strange behaviour i…
sp_PrintTopic sp_TopicIcon
Renamed query - strange behaviour in data model
Avatar
Mardi Linke
Member
Members
Level 0
Forum Posts: 37
Member Since:
February 16, 2018
sp_UserOfflineSmall Offline
1
September 28, 2021 - 11:14 am
sp_Permalink sp_Print

Hi

I committed the cardinal sin. I renamed a query that was already loaded to the data model. Now I get strange behaviour. Is there a way to fix this? I've tried unticking Load to Data Model then closing Excel then reloading.

What is the strange behaviour? When I create a pivot table from the data model all the values are there (it totals the correct amount) but most of one of the dimension items aren't there. I have a table "Expense budget", which is the one I renamed. It has data for date, GL account, project and amount. I have dimension tables for Dates, GL accounts, and Projects. Of the 14 projects, in my slicer I end up with 1 project and "blank". Dates and accounts seem OK.

The same thing is happening for my "Revenue budget" table but interestingly it was created later and not renamed (the naming of it influenced me to change the Expense budget table, it had previously been called "Budget").

I know I'm an idiot Confused but is this fixable?

Thanks

Mardi

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
September 28, 2021 - 7:31 pm
sp_Permalink sp_Print

I'm not sure I follow the strange behaviour, but it sounds like maybe you are using fields in your row/column labels that are from one of the fact tables, rather than the dimension table. When you use fact table fields you end up with 'blank' items where you don't have a complete list of all the items in the field you've put in the PivotTable. Check that the row/column label fields are coming from the dimension table.

As for the renamed query...maybe it is corrupt. Difficult to say without seeing the model. Did you try renaming it back to what it was?

Mynda

Avatar
Mardi Linke
Member
Members
Level 0
Forum Posts: 37
Member Since:
February 16, 2018
sp_UserOfflineSmall Offline
3
September 30, 2021 - 12:10 pm
sp_Permalink sp_Print

Thanks Mynda. All the row/columns are dimension table fields. I added an attachment below with some screenshots. I'll try renaming back to the old name and see if that helps.

Avatar
Mardi Linke
Member
Members
Level 0
Forum Posts: 37
Member Since:
February 16, 2018
sp_UserOfflineSmall Offline
4
September 30, 2021 - 12:23 pm
sp_Permalink sp_Print

Ignore me! I resolved it. I had linked the wrong field in the relationship in the Project table. Ugh so simple but such a pain. And having renamed the query threw a red herring out that I went chasing.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, Richard West, Wesley Burchnall, Emma Klonowski, Clayton Watson, Kelly smith
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27291

 

Member Stats:
Guest Posters: 49
Members: 31913
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.