+ Reply to Thread
Results 1 to 2 of 2

data table measure - add date criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    12-02-2007
    Posts
    6

    data table measure - add date criteria

    Hi
    I have a data table with a measure to get a goods cost price.
    Essentially
    =sumx('All Sales Amazon','All Sales Amazon'[Quantity]*RELATED('UL Unit Costs'[Post Avg Cost]))

    The tables are related by a product code.
    My UL Unit Costs Table currently has only one price per code.

    I would like my costs table to have a historic record of the cost price per code (i.e several dates with same code and differing cost prices)
    and would then like to adjust my measure to find the nearest cost price to a specific date.

    I am not sure if this is possible.

    Sample data
    date code cost
    02/12/2024 00:00 S16 3.7
    20/11/2024 00:00 95 0.21
    02/11/2024 00:00 S16 3.2
    02/11/2024 00:00 95 0.19

    So pick a cost depending on the date as well as the related code.

    Apologies if this is a convoluted explanation

    Perhaps I am not thinking through correctly

    Any help much appreciated
    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: data table measure - add date criteria

    Please update your profile with your location and your version of Excel.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Replies: 9
    Last Post: 09-12-2023, 06:15 PM
  2. Replies: 4
    Last Post: 07-12-2023, 09:06 AM
  3. Power Pivot running total measure by criteria
    By Dicken in forum Office 365
    Replies: 0
    Last Post: 09-17-2022, 11:25 AM
  4. [SOLVED] Dax to create measure to find Previous date to last cost by date.
    By Ramzan-ul-Mubarak in forum Excel General
    Replies: 3
    Last Post: 03-16-2022, 08:10 AM
  5. Pivot Table: Grand Total different measure from Column measure
    By chinneywow in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2019, 06:22 AM
  6. Data Model Pivot Table - Measure Issue
    By CraigsWorld in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2018, 02:54 AM
  7. [SOLVED] sum data in pivot table based on date criteria
    By joeycrak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2013, 09:45 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