Results 1 to 3 of 3

Data Model Pivot Table - Measure Issue

Threaded View

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Surrey, BC
    MS-Off Ver
    Excel 2016
    Posts
    84

    Data Model Pivot Table - Measure Issue

    Hi there, not sure if I can easily explain what I am trying to do... but will give it a shot.

    I have two tables that I have added to the data model (using Excel 365 ProPlus) (Table 1 - with Sales & Table 2 with Goals) with assigned groups (A & B).

    Description for attached image...

    PIVOT1 (Pivot Table) shows the rows by location, adding groups, AVG_SALES from Table 1 and AVG_GOAL from Table 2.
    AVG_SALES = Average([Sales])
    AVG_GOAL = Average([Goal])

    As you can see that PIVOT1 shows an AVG_GOAL ($5) value but has no AVG_SALES value adjacent. My objective is to remove the AVG_GOAL ($5) value if no matching AVG_SALES value exist.

    In PIVOT2 (Pivot Table), I created new measures (TTL_SALES & TTL_GOAL) still by Location. Which does exactly what I need it too.

    TTL_SALES = if(isblank([AVG_GOAL]),blank(),[AVG_SALES])
    TTL_GOAL = if(isblank([AVG_SALES]),blank(),[AVG_GOAL])

    As you can see... the TTL_GOAL ($5), no longer appears.


    My issue is that I also need to create a pivot table (PIVOT3) that does the same thing by group.
    As you can see in PIVOT3, the TTL_GOAL value is averaging with the $5 included...

    How do I work the measures to remove the $5, like it did in PIVOT2?

    Pivot Table (PIVOT3) TTL_GOAL should read $70!

    Is there a better way to make this work? Been pulling my hair out for quite a few hours today...

    Sample.PNG


    Thanks
    Craig
    Last edited by CraigsWorld; 09-29-2018 at 12:30 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Table and Data Model
    By olga6542 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-17-2018, 02:43 PM
  2. For each pivot item in pivot table - for data model
    By dancing-shadow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2017, 02:45 PM
  3. Data-Model Measure
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-20-2017, 01:48 PM
  4. VBA filter Pivot Table basen on Data Model
    By zico8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2017, 04:31 AM
  5. Creating a Pivot Table from Power Pivot Data Model?
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2017, 12:02 PM
  6. power pivot table - Data model
    By pccamara in forum Excel General
    Replies: 2
    Last Post: 04-18-2016, 11:20 AM
  7. [SOLVED] Grouping disabled when pivot table is added to the data model?
    By Rvsalka in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-17-2015, 04:56 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