+ Reply to Thread
Results 1 to 3 of 3

Average prices if a supplier appears twice in range within a specific segment

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    57

    Exclamation Average prices if a supplier appears twice in range within a specific segment

    Hi there,

    I have a worksheet where the user makes a choice between 3 segments (0-199 employees, 200-499 employees, and +500 employees) in a drop down, and then I need PowerPivot to average the prices for all firms with that number of employees (e.g. between 200-499 employees).

    However, the complicating twist is that within the three segments, PowerPivot should only average the prices of suppliers that appear AT LEAST twice. So for instance in the table below, supplier 1 should be included when averaging prices in the 0 - 199 segment (since it appears twice), but not in the 500+ segment (since it appears only once).

    Sample table.png

    My idea is to make a calculated column or measure that evaluates to "TRUE" if the price should be included in the calculations and then add that TRUE as a report filter in the pivot table.

    However, I am unsure how to build the formula in DAX.

    Any help is greatly appreciated, thanks.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: Average prices if a supplier appears twice in range within a specific segment

    I did it with ordinary table entries and ordinary PivotTable ... just for quickness. It that suitable?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-08-2019
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    57

    Re: Average prices if a supplier appears twice in range within a specific segment

    Thanks for the quick response Glenn - I found another solution directly in PowerPivot

+ 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] Formula to return Yes if the Supplier is Xomo and if the Supplier Bisum job title
    By lachonda1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-06-2020, 06:43 PM
  2. Replies: 2
    Last Post: 08-30-2018, 08:30 AM
  3. Average on Prices from DDE
    By stavros21 in forum Excel General
    Replies: 5
    Last Post: 02-03-2015, 01:09 AM
  4. [SOLVED] Find specific value in array which appears multiple times and average all relative cells
    By nenadmail in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-24-2014, 04:18 PM
  5. [SOLVED] highlight when specific text appears multiple times in a range of cells - excel 2013
    By Onefynebarraza in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 10-14-2013, 09:06 AM
  6. Prices average
    By tofimoon4 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 11-14-2011, 02:51 AM
  7. Macro to search cells for specific text segment
    By jchambers00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2009, 04:17 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