Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm trying to get the sum of certain lines (revenue) for each of the divisions. That is, I need to take the amount of the division's revenue and use it in another expression.
I tried to use this and it works fine if there is no split into different divisions (Dep1, Dep2, etc)
CALCULATE ( SUM([rev]), FILTER ( ALLSELECTED ('table'), 'table'[is_rev] = 1 )))
Perhaps there is another solution?
Solved! Go to Solution.
@aschurf , Based on what I got, Try like
CALCULATE ( SUM([rev]), FILTER ( ALLSELECTED ('table'), 'table'[Dept] = max('table'[Dept] ) && 'table'[is_rev] = 1 ))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@aschurf , Based on what I got, Try like
CALCULATE ( SUM([rev]), FILTER ( ALLSELECTED ('table'), 'table'[Dept] = max('table'[Dept] ) && 'table'[is_rev] = 1 ))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 46 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |