Forum Discussion
Confused in calculations
Why this
measure1 =
Var Debit =
Calculate ( TableSum[Sum], Filter(TableSum, TableSum[Sumarize] = "Debit"))
Var Kredit =
Calculate ( TableSum[Sum], Filter(TableSum, TableSum[Sumarize] = "Kredit"))
Return
Calculate(Debit - Kredit, Filter(TableSum, TableSum[Code] = "x"))
is not do same result than this
Calculate(
Calculate ( TableSum[Sum], Filter(TableSum, TableSum[Sumarize] = "Debit"))
-Calculate ( TableSum[Sum], Filter(TableSum, TableSum[Sumarize] = "Kredit")),
Filter(TableSum, TableSum[Code] = "x"))
Analitika no filter is passed once you have values in var, so in your first expression TableSum[Code] = "X" is not getting applied on debit and credit vars
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
1 Reply
- parry2k
Super User
Analitika no filter is passed once you have values in var, so in your first expression TableSum[Code] = "X" is not getting applied on debit and credit vars
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡