Forum Discussion
icosta7
6 years agoNew Member
MEASURE TO COUNT VARIOUS VALUES FILTERED
Hi there! I am still crawling in PBI and it may be that my question is very basic, but as I spent the whole afternoon looking for an answer on the forums and I didn't find anything, I decided to po...
- 6 years ago
Hi icosta7 ,
You need to create the following measures:
Tratamentos realizados = CALCULATE(COUNTA(data[Status do Sistema]);data[Status do Sistema] in {" C"; "FC"; "SC"}) Tratamentos cancelados = CALCULATE(COUNTA(data[Status do Sistema]);data[Status do Sistema] in {"E"; "M"; "X"})Be aware that in some status you have a space before the code (example C) so I had to do it in the formula as you can see.
See attach file.
MFelix
6 years agoSuper User
Hi icosta7 ,
You need to create the following measures:
Tratamentos realizados = CALCULATE(COUNTA(data[Status do Sistema]);data[Status do Sistema] in {" C"; "FC"; "SC"})
Tratamentos cancelados = CALCULATE(COUNTA(data[Status do Sistema]);data[Status do Sistema] in {"E"; "M"; "X"})
Be aware that in some status you have a space before the code (example C) so I had to do it in the formula as you can see.
See attach file.
- icosta76 years agoNew Member
Valeu amigo! Só fiz alguns pequenos ajustes e acrescentei uma nova medida. Ajudou bastante!