• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Got really excited about joining tables via Relationships, but spent all day trying to bring them together in pivot table to no avail|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Got really excited about joining tables via Relationships, but spent all day trying to bring them together in pivot table to no avail|Power Pivot|Excel Forum|My Online Training Hub

vba course banner

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 PivotGot really excited about joining ta…
sp_PrintTopic sp_TopicIcon
Got really excited about joining tables via Relationships, but spent all day trying to bring them together in pivot table to no avail
Avatar
Lisa Grace

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
February 15, 2022
sp_UserOfflineSmall Offline
1
February 16, 2022 - 12:19 am
sp_Permalink sp_Print sp_EditHistory

Hi...I am looking both for a technical answer to this specific problem, but also thinking I need to level up to probably using functionality yet to be explored (by me) such as learning everything about Data Models.rnMy team has been creating reports to read out to Executives for my company using probably 50 vlookups per report.  I was lured to the team because I was told we\'d be doing cool things with PowerBI and Tableau and automation (oh, and because they can\'t retain anyone in this position).  After seeing reality, I believe that is years away so looking for an interim solution with Excel.rnI joined 2 tables, and am pulling them into a pivot, it shows the same total for all row fields.  Something is not right with the join.  As part of testing, I created 2 very small tables and joined them to the same result (attached).  rnI would be so grateful to know if I\'m doing something wrong, or if this really can\'t be done, before defeatedly returning to vlookups.  But secondly, should I be using more advanced functionality to do this?  Always happy to learn if I have some direction.

Thank you in advance. ~Lisa

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
February 16, 2022 - 9:08 am
sp_Permalink sp_Print

Hi Lisa,

Welcome to our forum!

The file didn't get attached. You need to click 'start upload' after selecting your file, then wait for the grey check mark beside the file size before clicking 'submit reply'.  

That said, it sounds like you've joined two fact tables together and what you need is a dimension table to join them to, then you use the fields from the dimension table in your row/column labels and the fields from your fact tables in the values area.

Hope that points you in the right direction. If you want to learn Power Pivot and DAX, please consider my Power Pivot and DAX course.

Mynda

Avatar
Lisa Grace

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
February 15, 2022
sp_UserOfflineSmall Offline
3
February 17, 2022 - 12:54 am
sp_Permalink sp_Print

Thanks, Mynda.  Will check out your course!  Was hoping to join tables via relationships as an intermediate step until I have time to learn new functionality.  I think the file was too large--will try to attach again.  I believe I have one fact table (w/ repeating key field) and one dimension table (no repeating key field), and then I tried to display the pivot table with the dimension fieldtestrelationships-screenshot-2022-02-15_8-38-42-1.pngImage Enlarger

in rows and fact in values, but it displays grand total (same #) for each dimension row variable.

sp_PlupAttachments Attachments
  • sp_PlupImage testrelationships-screenshot-2022-02-15_8-38-42-1.png (150 KB)
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
February 17, 2022 - 10:11 am
sp_Permalink sp_Print

Hi Lisa,

The VacayLookup quasi dimension table is filtering the SampleRoster fact table, therefore the Year field in the PivotTable must come from the dimension table, not the fact table. In reality, what you have is two fact tables. It just so happens that the VacayLookup table has a unique list of years which enables it to behave like a dimension table. 

If your PivotTable only needs the year and vacation days fields, then you can build that from the VacayLookup table fields. If you also want fields from the SampleRoster table in the PivotTable, then you really should add a dimension table for the year field and relate your tables to that. You'd then use the year field from the dimension table in the PivotTable row labels.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Lisa Grace

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
February 15, 2022
sp_UserOfflineSmall Offline
5
February 17, 2022 - 11:37 pm
sp_Permalink sp_Print

Thanks much, Mynda!  Very much appreciated.

Follow-up question: Do you or other instructors/admins/moderators do consulting as well as offer courses?

Cheers,

Lisa

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
February 18, 2022 - 10:10 am
sp_Permalink sp_Print

Hi Lisa,

I don't have time for consulting, but I can refer you to a consultant. If you reach out via email website at MyOnlineTrainingHub.com and let me know what you want help with, I can recommend someone.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Louis Muti, Misael Gutierrez Sr.
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Cathi Giard
Sarah Young
Henry Delgado
Alita Nieuwoudt
KL KOH
Joao Marques
Regi Hampton
Taffie Elliott
Paramita Chakraborty
David du Toit
Forum Stats:
Groups: 3
Forums: 24
Topics: 6358
Posts: 27805

 

Member Stats:
Guest Posters: 49
Members: 32335
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.