+ Reply to Thread
Results 1 to 3 of 3

Power Query - Add dates to fixed Data set

  1. #1
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Power Query - Add dates to fixed Data set

    I have two tables with two columns:
    Table1 - Price
    - contract#
    - datevalid (2-3 instances a year)
    - price (updated when the datevalid changes)

    Table2 - Hours
    - contract#
    - date (each calendar day)
    - hours (hours worked on each calendar day)


    All I want to do is call the price that's valid for the day worked.

    Is this best done in powerquery or powerpivot/dax?

  2. #2
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Power Query - Add dates to fixed Data set

    I'm thinking I could create a table3 = rates

    Have this down to the detail level:
    - contract#
    - datevalid
    - date: calendarday 1, 2,3..n
    - price

    This way, I could link this table to table2 by calendarday.

    I realize table1=table3, with the only difference being 'date:calendarday1,2,3...n"
    - How would you modify a table to do this?

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Power Query - Add dates to fixed Data set

    Hi,

    It sounds like you basically want a PQ version of VLOOKUP, in which case try this- http://www.excelguru.ca/blog/2015/01...n-power-query/
    I suspect you could also do it with a calculated column in PP using some combination of CALCULATE and MAX.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. error in power query & power pivot
    By Baldev Kumar in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-03-2018, 01:34 AM
  2. Replies: 0
    Last Post: 10-25-2016, 02:59 AM
  3. Denesting tables in XML data imported into Power Query
    By Cuine100 in forum Excel General
    Replies: 1
    Last Post: 08-11-2016, 09:30 PM
  4. Adding data to the end of a table with Power Query
    By afila in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2016, 08:29 AM
  5. Power Query - Get external data from Folder
    By crainaud in forum Excel General
    Replies: 0
    Last Post: 03-24-2016, 12:49 PM
  6. Power Query Import Binary Data Type
    By brent_milne in forum Excel General
    Replies: 0
    Last Post: 08-13-2015, 09:46 AM

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