Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
For the income statement I want to create a matrix table:
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.
Here is how it looks like in Excel. How can I achieve this in Power BI?
Hi @TimmK
Try this measure:
% =
VAR _2021 =
CALCULATE (
SUM ( 'Table'[Amount] ),
ALLEXCEPT ( 'Table', 'Table'[Category] ),
'Table'[Year] = 2021
)
RETURN
_2021 / SUM ( 'Table'[Amount] )
Output:
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?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |