Forum Discussion

Botturovic's avatar
Botturovic
Frequent Visitor
5 years ago
Solved

Filter in a measure

Hello everyone,   I would need to filter the values of a column to separate the values = or > to 0, and the values < to 0. The values in the column come from a measure, but i can't manage to use t...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    5 years ago

    Hi Botturovic ,

     

    You can create something like below:

     

     

    Risultato% >1 = VAR A = SUMMARIZR('Table','Table'[ID],"_Risultato%",[Risultato%Comm]) RETURN COUNTX(A,[_Risultato%]>1)/COUNTROWS(A)
    
    Risultato% <1 = VAR A = SUMMARIZR('Table','Table'[ID],"_Risultato%",[Risultato%Comm]) RETURN COUNTX(A,[_Risultato%]<1)/COUNTROWS(A)

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai