Forum Discussion

poweruser55's avatar
poweruser55
Icon for Helper IV rankHelper IV
4 years ago
Solved

Multiple conditions in measure

How can I do multiple conditions in a measure? Right now I have this -  Ship = calculate(count('Table1'[OLI Number]),filter('Table1','Table1'[SD (Flag)]="Y")+0, filter('Table1','Table1'[Status]="Ac...
  • bcdobbs's avatar
    4 years ago

    Try the following. Only thing I wasn't sure on was what you were trying to do with the +0. Are you trying to remove blanks? I don't think it's needed with a predicate like that.


    Ship =

    CALCULATE (

       COUNTROWS 'Table1' )

       'Table1'[SD (Flag)] = "Y",

       'Table1'[Status] = "Active",

       NOT ( ISBLANK ( 'Table1'[OLI Number] ) )

    )