• 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
  • Login

Multiple date fields with a single 'Calendar table'|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Multiple date fields with a single 'Calendar table'|Power Pivot|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 PivotMultiple date fields with a single …
sp_PrintTopic sp_TopicIcon
Multiple date fields with a single 'Calendar table'
Avatar
John Murphy
Member
Members
Level 0
Forum Posts: 8
Member Since:
January 28, 2021
sp_UserOfflineSmall Offline
1
February 28, 2021 - 3:09 am
sp_Permalink sp_Print

Hi,

I have imported data into PowerPivot via Power Query into the data model.  I have created a calendar table, with bank holidays in order for me to calculate working days etc. The data relates to a query management, and includes columns 'date opened' and 'date resolved'.  
I want it to result in a simple summary pivot table which shows : date , count of date opened & count of date resolved.  I.e. how many new queries were opened in the month, how many were resolved.

I have created the relationship from the calendar table to 'date opened', but as you cannot have multiple active relationships, I cannot seem to get an accurate measure of the queries resolved in the same time period.  I have seen what looks like a PBI only answer, where you can use a measure to provide the result, but can't make it work in my data model.  The other option appears to be a duplicate calendar table, which is less preferred but would provide the answer I need - but I can't find a way to duplicate a whole table in PP (my calendar table was created in PP).

Am I missing a simple answer here?  Any help would be appreciated.  The data feed an excel dashboard (no company license for PBI yet) so I want it to refresh and update all the pivots without the need for any manual work each period.

 

Thanks in advance

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4620
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
February 28, 2021 - 5:23 pm
sp_Permalink sp_Print

Hi John,

When you have an inactive relationship you can write measures that activate the relationship using the 'USERELATIONSHIP' function. If you're still stuck, please provide a small sample file that illustrates the issue so we can help you further.

Mynda

Avatar
John Murphy
Member
Members
Level 0
Forum Posts: 8
Member Since:
January 28, 2021
sp_UserOfflineSmall Offline
3
March 1, 2021 - 9:51 pm
sp_Permalink sp_Print

Hi Mynda,

Thanks for your reply, I'm not sure where I would include that function.

I've remade a crude version of the file and attached.  In order for the dates to build the relationship I've truncated them, and you can see on the pivot sheet how the calculations are showing at the moment, as well as how I would expect them.  Appreciate your help.  Thanks

 

John

Avatar
John Murphy
Member
Members
Level 0
Forum Posts: 8
Member Since:
January 28, 2021
sp_UserOfflineSmall Offline
4
March 4, 2021 - 6:14 am
sp_Permalink sp_Print

Hi Mynda, I've managed to resolve this, in the end I created a column to add an arbitrary value if resolved, and the used the USERELATIONSHIP with a SUM inside a calculated.

Thanks for your help.

 

Kind Regards

The following users say thank you to John Murphy for this useful post:

Mynda Treacy
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Sameh Alami
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 188
Newest Members:
JUDY MLL
Scot Bailey
Kate Dyka
Kwaje Alfred Mogga
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Forum Stats:
Groups: 3
Forums: 24
Topics: 6548
Posts: 28672

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.