+ Reply to Thread
Results 1 to 3 of 3

Displaying MIN date based on criteria in calculated field of PowerPivot

  1. #1
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Displaying MIN date based on criteria in calculated field of PowerPivot

    Hello All

    I have a database with a list of transactions with multiple fields, including:
    Customer ID
    Store ID
    Item ID
    Date
    Price

    I am wanting to add a calculated field that displays the first (or MIN) Date from the date column, looking at all of the orders where the customer ID, store ID, item ID and price are the same.

    In the attached file I have shown what I currently have, as well as a solution using a helper column, and formulas I would use if I wasn't using powerpivot.

    Any ideas would be much appreciated.

    Thanks!
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Displaying MIN date based on criteria in calculated field of PowerPivot

    no idea how you use power pivot are you just looking for an all in one formula to use in it? this array
    =MIN(IF(INDEX($B$4:$B$27&" - "&$C$4:$C$27&" - "&$D$4:$D$27&" - "&$F$4:$F$27,0)=B4&" - "&C4&" - "&D4&" - "&F4,$E$4:$E$27))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Displaying MIN date based on criteria in calculated field of PowerPivot

    Powerpivot is a whole different scenario, where instead of using lookups, you create relationships, and pull related fields, etc....
    I'm looking for some sort of a DAX measure, perhaps using the "calculate" function (a function exclusive to PowerPivot), but I can't wrap my head around it. Someone who has a more complete understanding of PowerPivot knows the answer, but I'm just not there yet.

+ 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. New calculated Field in Powerpivot
    By ehardway111 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-22-2013, 03:07 PM
  2. Replies: 1
    Last Post: 12-21-2012, 05:40 AM
  3. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  4. Replies: 0
    Last Post: 06-22-2012, 07:13 AM
  5. Displaying values based on calculated date???
    By lanhamkd in forum Excel General
    Replies: 4
    Last Post: 04-19-2011, 03:10 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