Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have table like this
Project | Category | Value |
A | BUZ | 2 |
A | JUZ | 8 |
A | JUZA | 7 |
A | OUZ1 | 21 |
B | KJUZ | 12 |
B | JUZ | 211 |
I need to calculate ratio for each category So for example for Project A Category BUZ ratio will be (2/(2+8+7+21)) and for category JUZ it will be (8/(2+8+7+21))
For Project B it will be 12/(12+211) for category KJUZ.
Project | Category | Value | Ratio |
A | BUZ | 2 | 0.0526 |
A | JUZ | 8 | 0.2105 |
A | JUZA | 7 | 0.184 |
A | OUZ1 | 21 | 0.55263 |
B | KJUZ | 12 | 0.053811 |
B | JUZ | 211 | 0.946 |
How can I get it? I need to have it as a column in my Power Bi table.
Solved! Go to Solution.
try to create a new column with this
try to create a new column with this
Hi,
You can create the following measures: