Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dutch
Regular Visitor

Need help - Table summations

I have a power pivot table with the following data:

 

Company code      Financial Item    Buisness Unit  Period     Amount

123                           ABC                        A                  1           100

123                           ABC                        A                  2           245

234                           ABC                        A                  1             75

345                           CDE                        B                  2           125

234                           CDE                        A                  3           375

 

In an additional column I show the amount of the previous period, so I can calculate the change between periods (for specific company code, financial item and Business unit).

How do I do this in powerpivot?

 

Thank you for your help

 

Robert

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @Dutch

 

Does this work?

 

Column = 
    SUMX(
        FILTER(
            'Table1',
            'Table1'[Company Code] = EARLIER('Table1'[Company Code]) &&
            'Table1'[Financial Item] = EARLIER('Table1'[Financial Item]) && 
            'Table1'[Business Unit] = EARLIER('Table1'[Business Unit]) &&
            'Table1'[Period] = EARLIER('Table1'[Period]) - 1
            ),
            'Table1'[Amount])

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @Dutch

 

Does this work?

 

Column = 
    SUMX(
        FILTER(
            'Table1',
            'Table1'[Company Code] = EARLIER('Table1'[Company Code]) &&
            'Table1'[Financial Item] = EARLIER('Table1'[Financial Item]) && 
            'Table1'[Business Unit] = EARLIER('Table1'[Business Unit]) &&
            'Table1'[Period] = EARLIER('Table1'[Period]) - 1
            ),
            'Table1'[Amount])

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.