+ Reply to Thread
Results 1 to 4 of 4

Add custom rows and columns in Power Query

  1. #1
    Registered User
    Join Date
    11-26-2017
    Location
    Ostrava, Czech republic
    MS-Off Ver
    2010 32bit
    Posts
    13

    Add custom rows and columns in Power Query

    Hi, could you please anybody help me with following stuff? Trying to figure out how to add automatically rows into table which is loaded from a database source. I would like to analyze each "Status" type duration per shifts. This basically means I need to add rows per each day which will contain in "t_st column" following information:

    dd.mm.yyyy 6:00 (beginning of the MorningShift)
    dd.mm.yyyy 14:00 (beginning of the AfternoonShift)
    dd.mm.yyyy 22:00 (beginning of the NightShift)
    In each of these added rows should be coppied information about "Status" from the above row.

    In next step should be added column with calculated duration of each "Status".

    Below is visible data example.
    example.png

    Thanks in advance for any help.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Add custom rows and columns in Power Query

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    11-26-2017
    Location
    Ostrava, Czech republic
    MS-Off Ver
    2010 32bit
    Posts
    13

    Re: Add custom rows and columns in Power Query

    Here is the requested example.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-26-2017
    Location
    Ostrava, Czech republic
    MS-Off Ver
    2010 32bit
    Posts
    13

    Re: Add custom rows and columns in Power Query

    Nobody? Any Idea?

    Here is macro which tried to make friend of mine. It is just for step one and not useful in Power Query:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Custom Permutations Column in Power Query from two columns in the same Query
    By PaintPaddy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:48 PM
  2. [SOLVED] Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-06-2018, 11:10 AM
  3. Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2018, 09:57 AM
  4. [SOLVED] Power Query Custom Column: If number in columns a or b are less than 1 then 0 else 1
    By jekeith in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-15-2018, 10:31 AM
  5. Power Query - Invoke Custom Function
    By leukep in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2017, 02:18 PM
  6. [SOLVED] Changing Power Query rows to columns on repeat cells.
    By beaglesBuddy in forum Excel General
    Replies: 3
    Last Post: 06-14-2017, 02:13 PM
  7. Help with Power Query Custom Column Formula
    By travis.cook21 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2016, 01:45 PM

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