+ Reply to Thread
Results 1 to 2 of 2

DAX Power Pivot Measure Help

  1. #1
    Registered User
    Join Date
    12-06-2017
    Location
    Chicago, IL
    MS-Off Ver
    2016
    Posts
    28

    DAX Power Pivot Measure Help

    Hi All,

    Not sure if this is the right forum, or if you even take Power Pivot questions, but I know this is a knowledgable group, so I'm going to give it a shot.

    I have been working on creating measures to calculate data based on a 3rd table (ie - many-to-many relationship).

    Here is the scenario:

    Data is all being pulled from P6 database, except the PO list, which is supplied by the client. I want to measure performance against a specific contractor and their specific purchase orders, so I have tacked in a table with that information. My table relationships is shown below. In this case, I am working with the MOD_Site_ID, Q_SMonthly, and POFiltered tables, so ignore the Q_Site_Metrics table:

    tables.JPG

    Unfortunately, Power Pivot data models are only capable of a one-way relationship, but I have been able to create measures that allow me to filter by purchase orders, and here is how that works:

    First, I create a measure on the category

    AC Measure.JPG

    Then I use that measure to create a second measure that will filter against the PO table

    ACbyPOMeasure.JPG

    So, that is working well. But the final step I'd like to take is to create a CUMULATIVE measure that can be filtered by PO. This allows me to chart the metric as it grows across the months. Here is an example of a cumulative measure works on another table in my project, and you can see that each successive row adds this months value to the row above it:

    Finexample.JPG

    I'd like to do that in my measure that filters by PO, but can't get it to work. Here is what is happening:

    doesntworkhere.JPG

    I've tried writing this measure several different ways, but no matter how I approach it, I haven't been able to solve it.
    Here is the measure as it is written at the moment:
    ACCumbyPO:=CALCULATE([ACbyPO],FILTER(ALL('Calendar'),[Date]<='Calendar'[Date]),VALUES('Calendar'[Year]))


    Any DAX lovers out there willing to weigh in?

  2. #2
    Registered User
    Join Date
    12-06-2017
    Location
    Chicago, IL
    MS-Off Ver
    2016
    Posts
    28

    Re: DAX Power Pivot Measure Help

    Awww, no takers? Unusual for this group. I'm still wrangling with this, and haven't figured it out yet, so I'm open to all suggestions!
    Kirstin

+ 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. Removing Subtotals for Measure in Power Pivot
    By ljhami in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-12-2018, 03:49 PM
  2. Power Pivot: Adding a measure to a Pivot Chart
    By jlt199 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-22-2017, 12:40 PM
  3. [SOLVED] Power Pivot Measure so I can put a text field in If condition is not true
    By rv02 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-06-2016, 08:59 AM
  4. [SOLVED] Help Needed with Power Pivot Calculate Measure
    By rv02 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-13-2015, 10:09 AM
  5. [SOLVED] Create a measure in Power Pivot to divide by value in subtotal row of the PP
    By rv02 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-22-2015, 11:22 AM
  6. [SOLVED] RANK.EQ Function in Power Pivot Measure
    By rv02 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2015, 04:26 PM
  7. Excel Power pivot measure
    By eajustin15 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-12-2013, 05:16 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