Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 @v-shex-msft
Thank you for your response, I found the response. As you said, it was a common measure total level calculation.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |