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
TimmK
Helper IV
Helper IV

Income Statement Matrix Percentage

For the income statement I want to create a matrix table:

  • Rows: Different categories (revenue, different types of expenses)
  • Columns: Years (2021, 2020, 2019 etc.)
  • Values: Amount (and percentage)

I want to compare the amount of 2021 to the amount of the previous years for each category. Yet, the formula for the percentage values DIVIDE(CALCULATE([Amount],'Date'[Year]=2021,[Amount],0) does not work, the % values remain empty when I apply the formula.

 

Percentage.PNG

 

Here is how it looks like in Excel. How can I achieve this in Power BI?

2 REPLIES 2
VahidDM
Super User
Super User

Hi @TimmK 

 

Try this measure:

 

% = 
VAR _2021 =
    CALCULATE (
        SUM ( 'Table'[Amount] ),
        ALLEXCEPT ( 'Table', 'Table'[Category] ),
        'Table'[Year] = 2021
    )
RETURN
    _2021 / SUM ( 'Table'[Amount] )

 

 

Output:

VahidDM_0-1633855016480.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Hi @VahidDM 

 

Thank you for your great and helpful answer.

 

Yet, I actually have three tables that result in the income statement, namely the date, account and income table. How can I apply ALLEXCEPT here?

 

Tables.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.