Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello experts,
I am struggling finding the right formula for a measure.
I have this table
And would like to come to this type of results
So a formula that calculates the sum of Qty per Code / total Qty
In this case :
- A = (80+20+15) / (100+20+20+10+20)
- B = 10 / (100+20+20+10+20)
- C = 5 / (100+20+20+10+20)
I would like to have the formula that will allow doing this.
Solved! Go to Solution.
@ashisha11
Use this measure.
Insert Code and this measure in a Table Visual
Measure =
DIVIDE(
SUM(Table[QTY]),
CALCULATE(
SUM(Table[QTY]),
ALL(Table)
)
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@ashisha11
Use this measure.
Insert Code and this measure in a Table Visual
Measure =
DIVIDE(
SUM(Table[QTY]),
CALCULATE(
SUM(Table[QTY]),
ALL(Table)
)
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
104 | |
93 | |
83 | |
64 |