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
Hi there! I need some help.
I would like to get the % of benefit of total amount for projects and global. The point is, columns "Income" and "Expenses" are a result of an "IF" function where:
Solved! Go to Solution.
HI @Enric21,
According to your description, it sounds like a common measure total level calculation issue. I'd like to suggest you take a look at Greg's blog to know how to solve this:
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
@Enric21 , based on what I got Project ID wise total
Total Expense GT =
CALCULATE( SUMX( filter( ALL(CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS) , CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS[Project ID] = max( CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS[Project ID]) ), CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS[Expenses]) )
Hi Amitchandak!
Thank you for your quick response I managed to make the "Total Expense GT" as I wanted for. The problem now is that I got the right percentaje when it comes to projects but when it comes to global amount the % is not correct.
I did a new measure replying your response to Result column as:
Total result GT = CALCULATE(
SUMX(
filter(
ALL(CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS) ,
CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS[Project] = max( CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS[Project])
),
CON_DATOS_MENSUALES_ESTUDIOS_ECONOMICOS[Result])
)
In order to get the benefit % I did
% benefit = CALCULATE(
DIVIDE(
[Total result GT],
[Total expense GT1]
)
)
Do you think any way I can get the right benefit % for both, global amount and filtered projects?
Thank you very much.
HI @Enric21,
According to your description, it sounds like a common measure total level calculation issue. I'd like to suggest you take a look at Greg's blog to know how to solve this:
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
Hi @Anonymous
Thank you for your response, I found the response. As you said, it was a common measure total level calculation.
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 |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |