This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I have following table:
| Costs | Ist_Value |
| Revenue | 2345 |
| Material Costs | 117 |
| Salary | 189 |
| Rent | 378 |
I want to calculate ig. % of Material Cost based on Revenue
= ist_value / Revenue
My result should be following:
| Costs | Ist_Value | %Value |
| Revenue | 2345 | 100% |
| Material Costs | 117 | 4,90% |
| Salary | 189 | 8,06% |
| Rent | 378 | 16,12% |
I try to extract the value for Cost=Revenue and use it for further calculation
| Costs | Ist_Value | Revenue | % Value |
| Revenue | 2345 | 2345 | 100% |
| Material Costs | 117 | ||
| Salary | 189 | ||
| Rent | 378 |
What am I doing wrong?
Solved! Go to Solution.
Hi, @Anonymous
In that case, the situation has been changed to me.
So, I need to write the measure again from the beginning.
Please try the below and let me know whether it works.
Revenue =
CALCULATE (
SUMX ( 'Table', 'Table'[Ist_Value] ),
FILTER ( ALL ( 'Table' [Cost]), 'Table'[Costs] = "Revenue" )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Hi, @Anonymous
I think it is related to your Revenue measure.
Please try to replace it to the below.
Revenue =
CALCULATE (
SUMX ( 'Table', 'Table'[Ist_Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Costs] = "Revenue" )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Hi Jihwan Kim,
thanks for your reply.
It's almost correct.
Unfortunatly I wasn't 100% clear.
My original Table has also additionally a date inside:
(arggh I can't past Table)
Date Costs Ist_value
Jan Revenue 2345
Jan Material C 238
Feb Revenue 5689
Feb Material C 245
How can I still consider the date within Revenue calculation?
Right now with your approach it's taking total Sum of Revenue over whole table but it should be still grouped by date.
(sorry for not being accurate enough at the begining)
Hi, @Anonymous
In that case, the situation has been changed to me.
So, I need to write the measure again from the beginning.
Please try the below and let me know whether it works.
Revenue =
CALCULATE (
SUMX ( 'Table', 'Table'[Ist_Value] ),
FILTER ( ALL ( 'Table' [Cost]), 'Table'[Costs] = "Revenue" )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 8 | |
| 6 | |
| 6 |