Results 1 to 3 of 3

Thread: SUMIF with PowerPivot
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jul 2014
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default SUMIF with PowerPivot

    Dear All,


    I have a problem. I need to use SUMIF'ish function in PowerPivot that would go something like this.


    A 1
    B 2
    C 3
    A 10
    A 50
    B 60
    B 10

    And for this Data I would like to get

    A 61
    B 72
    C 3
    A 61
    A 61
    B 72
    B 72

    So it would be a sumif with changing criteria for each row. How to solve this? Thanks guys !

  2. #2
    Board Regular
    Join Date
    Aug 2012
    Location
    Sydney Australia
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: SUMIF with PowerPivot

    The first formula will give better performance if you have a big data set

    1. CALCULATE(SUM([Sales]),ALLEXCEPT(Table1,Table1[item]))

    2. SUMX(FILTER(Table1,Table1[item]=EARLIER(Table1[item])),[Sales])










  3. #3
    New Member
    Join Date
    Jul 2019
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: SUMIF with PowerPivot

    Quote Originally Posted by XLBob View Post
    The first formula will give better performance if you have a big data set

    1. CALCULATE(SUM([Sales]),ALLEXCEPT(Table1,Table1[item]))

    2. SUMX(FILTER(Table1,Table1[item]=EARLIER(Table1[item])),[Sales])









    Dear Bob,

    Could you help me with the below ?

    In my case i would like to calculate cumulative totals for data containing GL Account Balances (Column 1) for each of the Financial period (Column 2) having the "Current period activity (Column 3).

    I would like to perform the below

    Account | Period | Amount | Cumulative
    A100 1 100 100
    A100 2 200 300

    So i want to calculate the cumulative column in Power Pivot, also would be helpful if the same could be done using Power Query.

    Thanks in advance.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •