Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi!
I have the following situation: I have 3 categories (A, B ,C) , their value and loss. I have to DEDUCT the loss from category A AND ADD IT TO category C.
EXAMPLE:
CATEGORY | VALUE | LOSS |
A | 100 | 20 |
B | 120 | 0 |
C | 50 | 0 |
TOTAL | 270 | 20 |
EXPECTED RESULT:
CATEGORY | VALUE | LOSS |
A | 80 | 0 |
B | 120 | 0 |
C | 70 | 20 |
TOTAL | 270 | 20 |
WHAT MEASURE COULD I BUILD?
THANKS! ~~
Solved! Go to Solution.
Proud to be a Super User!
Proud to be a Super User!
Thank you for help! 🙂
Proud to be a Super User!
@ANM_97 , Need to create measures like this:
NEW VALUE = SUM(Table[Value])-SUM(Table[Loss])
NEW LOSS = 0
OR NEW LOSS MEASURE = SUM(Table[Loss])-SUM(Table[Loss])
It's not that simple. The value of LOSS = 20 must be subtracted from A and added to category C. I have attached a measure, but it does not add to category C.
depends on how you want to use it
RESULT 2 = SUMX ( table, 'table'[value] - 'table'[loss] )
Proud to be a Super User!
It's not that simple. The value of LOSS = 20 must be subtracted from A and added to category C. I have attached a measure, but it does not add to category C.
I try this:
But don't work ok, because the LOSS value is also low from the total value.
I am not sure why you are asking for someone else to come and help when I am putting my time into helping you? Please provide the code you have used in text form so i can see what is going on
Proud to be a Super User!