+ Reply to Thread
Results 1 to 2 of 2

Pivot that shows a product name by year if a sale was made

  1. #1
    Registered User
    Join Date
    03-27-2019
    Location
    Dallas, Texas
    MS-Off Ver
    2016
    Posts
    15

    Pivot that shows a product name by year if a sale was made

    I have attached a spreadsheet which is a simplified example of my raw data and also my desired output. I need to build a list which shows the name of a product in a cell in every year that it is sold. But I need the name to appear in a pivot. I have only been able to get the number field to appear in the value part of the pivot
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot that shows a product name by year if a sale was made

    Format your source data as a table, then use this power query to normalise, and load to the data model:

    Please Login or Register  to view this content.
    Now add a measure to your data model:
    Please Login or Register  to view this content.
    This will then list the product names for products with sales. It aggregates, so reports the relevant list, when the evaluation context has sales for more than one product:

    Capture.PNG
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. [SOLVED] Sale total prior year
    By Shan54321 in forum Excel General
    Replies: 4
    Last Post: 03-11-2019, 02:00 PM
  2. How to auto update product stock when a sale happens
    By psahani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2018, 06:45 AM
  3. [SOLVED] Rank Based On Product & Then Sale
    By NeedForExcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2015, 08:02 AM
  4. [SOLVED] When Temp worksheet is made shows save as due to MACRO...
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2015, 02:18 AM
  5. [SOLVED] define exact number of products sale from multiple sale and returned sale orders
    By maabadi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 06:14 AM
  6. Replies: 1
    Last Post: 10-29-2012, 05:11 AM
  7. [SOLVED] Locate particular months sale with year
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-03-2006, 02: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