SUMIF with PowerPivot

kuba1989

New Member
Joined
Jul 16, 2014
Messages
1
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 !
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

XLBob

Board Regular
Joined
Aug 17, 2012
Messages
65
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])









 

lokesh221188

New Member
Joined
Jul 18, 2019
Messages
1
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,134
Messages
5,484,929
Members
407,474
Latest member
Pam Sander

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top