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.
Hi All
I have a table like below that has 5 columns and each row has a unique combination (Fund, Item, Line, Year). I need a dax formula that will look at an entire table and sum the amounts for each unique combination (ex: Fund: Amex, Item: 2, Line: 2020, Year: 2023). My real dataset has a few thousand rows.
Can anyone help with this?
FUND | ITEM | LINE | YEAR | AMOUNT |
AMEX | 2 | 2020 | 2022 | 15000 |
CAP | 1 | 1954 | 2022 | 12000 |
AMEX | 2 | 2020 | 2022 | 7000 |
CAP | 1 | 1954 | 2023 | 900 |
AMEX | 2 | 2020 | 2023 | 10000 |
Solved! Go to Solution.
Hi @Userpath77 ,
Below is my table:
The following DAX might work for you:
Measure =
CALCULATE(
SUM('Table'[Amount]),
ALLEXCEPT('Table','Table'[Line])
)
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Userpath77 ,
Below is my table:
The following DAX might work for you:
Measure =
CALCULATE(
SUM('Table'[Amount]),
ALLEXCEPT('Table','Table'[Line])
)
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks but what I need is somthing that will find and add each combination. As an example, since both Amex Lines have the same values for fund, item, line, year, the measure should show 1 total that equals both lines. I need that type of formula that will find matching combinations like decribed above and total them.
please put what output you nedd from above data you provide
Hello Dangar, I need the actual measure
Updated to show better picture of table
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 |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |