Forum Discussion
Analitika
4 years agoPost Prodigy
Filtering in calculation in Power BI
Hello, I would like to ask why filtering not working in my calculations? I used this measure: It was not in {"Skola tiekeju"} but I still see skola tiekjui values in visual. Why it happens...
FarhanAhmed
4 years agoCommunity Champion
try Use not in expression of {"Skola tiekeju"} with both || conditions
||( Operacija && not in {"Skola tiekeju"})
||( Operacija && not in {"Skola tiekeju"})
Analitika
4 years agoPost Prodigy
Error:
How to resolve this?
- FarhanAhmed4 years agoCommunity Champion
sorry it was a typo
can you please add same condition with your next two filter expression of Operacija
- FarhanAhmed4 years agoCommunity Champion
can you please write you DAX code in text format here,
- Analitika4 years agoPost Prodigy
_Gauta, EUR = CALCULATE( [__Lik_Suma] ,FILTER( _APV, (CONTAINSSTRING([apyvarta.operacija],"Pajamavimas") && not [apyvarta.operacija] in {"Turto pajamavimas"} && [apyvarta.operacija] not in {"Skola tiekÄ—jui"}) || CONTAINSSTRING([apyvarta.operacija],"Gauta") || CONTAINSSTRING([apyvarta.operacija],"Pradinis") ) )