+ Reply to Thread
Results 1 to 3 of 3

Include missing week numbers in pivot from powerquery if no data is available

  1. #1
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Include missing week numbers in pivot from powerquery if no data is available

    Hi Community,

    I have a powerQuery getting information from an external Database with Dates.
    I'm converting the dates into week numbers and using these as columns in my Pivot.
    Sometimes there will be no data for a given week, when that is the case, that week number will be missing.

    I need a way of including the week number and populating with zeros if there is no date available for that week.

    See attached for example.
    'Table3' has the pivot from the PowerQuery I have constructed from data on 'Sheet3'
    I have labelled as what I get, and created another beneath labelled a what I want.

    Hope I have explained clearly.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Include missing week numbers in pivot from powerquery if no data is available

    You could use a separate query to create all the relevant week numbers, then merge that with the existing query. You then just need to set the pivot table to show items with no data for the week numbers, and filter the blanks out of the row field. See attached.
    Rory

  3. #3
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Re: Include missing week numbers in pivot from powerquery if no data is available

    I like it!
    Haven't figured it out exactly how it works, but I can definitely copy the example and incorporate as needed.
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PowerQuery - change cells names each week
    By afgi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-28-2021, 01:21 AM
  2. Replies: 3
    Last Post: 10-28-2020, 12:05 PM
  3. Replies: 2
    Last Post: 11-13-2019, 06:17 PM
  4. Help with Pivot - Need to get current week and next week numbers
    By Beso90 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2019, 03:54 PM
  5. How to get week-over-week % in pivot table for dissimilar data
    By adityag85 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-15-2016, 05:54 PM
  6. Replies: 1
    Last Post: 05-06-2014, 01:21 PM
  7. Adding missing numbers in a Pivot chart
    By nigo75 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-12-2013, 12:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1