+ Reply to Thread
Results 1 to 4 of 4

Power Pivot: Measure to sum unpivoted values?

  1. #1
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Power Pivot: Measure to sum unpivoted values?

    Hello.

    I am trying to build a model that will summarize payroll data efficiently - the data is not uniform and would require a lot of manual manipulation. This is why I turned to PowerQuery/Pivot to help organize the data and push out values by their intended bucket (screen shot).

    There attached file provides a fairly good representation of the problem:
    - Multiple data sources
    - Columns that need to be summed

    Before unpivoting the data columns (earnings, tax, bonus) - sum('table..'earnings), etc... works
    - after unpivoting, all formulas break because those columns are removed and replaced with "values" - a new column is created "attribute" that is the header for each column pre-unpivot

    When I attempt to "sum('tab..'values)", using any array of "calculate(sum.., sumx,... " all efforts result in an error.

    On review, I believe it is because the unique identifier is now duplicated within each data set.

    Help is appreciated

    All formulas yield errors - on review, I see this could be on account of the mapping: when unpivoting the data, the unique identifiers blew-up in the source data?

    All help is appreciated. I hope this is just a formula to fix.

    Inquiry1.PNG
    Attached Files Attached Files
    Last edited by AliGW; 03-31-2021 at 04:01 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Power Pivot: Measure to sum unpivoted values?

    Append Table1-3 and re-create the relationship

    Model.png
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Power Pivot: Measure to sum unpivoted values?

    Quote Originally Posted by Bo_Ry View Post
    Append Table1-3 and re-create the relationship

    Attachment 726407
    This is amazing - I am unfamiliar with appending tables.

    I figured it out - thank you!
    - select all tables and hover "..." to append; append >3

    Wow. this is amazing!

    Thank you!
    Last edited by happydays886; 03-31-2021 at 02:20 PM.

  4. #4
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Power Pivot: Measure to sum unpivoted values?

    Quote Originally Posted by Bo_Ry View Post
    Append Table1-3 and re-create the relationship

    Attachment 726407
    When I recreate in the test data set - no issues.

    When I apply against the primary data set, the sum formula on the appended table values pulls an error.

    Resolved - the data I had was bad. After cleaning it up and building a bigger mapping set, it worked. Whole thing works as intended and is absolutely gorgeous.

    Thank you!
    Last edited by happydays886; 03-31-2021 at 09:22 PM.

+ 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. Duplicating Values in Power Pivot Table (DAX Measure?)
    By jmklei0 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-07-2021, 11:14 AM
  2. Replies: 4
    Last Post: 07-01-2020, 02:13 AM
  3. Expand just one measure in columns in Power Pivot
    By RrR2010 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-08-2019, 08:40 AM
  4. DAX Power Pivot Measure Help
    By chicagolarsons in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-22-2019, 08:57 PM
  5. 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
  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

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