Forum Discussion

Jodes007's avatar
Jodes007
Frequent Visitor
3 years ago
Solved

Create Measure to calculate Net impact on filtered value

Hello All    I have not been able to find a solution for this. I have a large dataset, the very top level is ProgramID. I want to be able to filter on the Total NET impact of the ProgramID regardle...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Jodes007 ,

     

    Sorry, not very clear. 

    If you want to filter out rows NET impact<0 in the visual. In the Filters, set up as follows.

    If you want to filter out NET impact<0 in the measure.

    COUNT TOTAL = CALCULATE(COUNT('Table'[ProgramID]),FILTER(ALLSELECTED('Table'),[Total Impact]>=0))
    COUNT GROUP BY ProgramID = CALCULATE(COUNT('Table'[ProgramID]),FILTER(ALLSELECTED('Table'),[ProgramID]=MAX('Table'[ProgramID])&&[Total Impact]>=0))

     

    Best Regards,

    Stephen Tao

     

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