Forum Discussion

rrafferty37's avatar
rrafferty37
Icon for Helper I rankHelper I
7 years ago
Solved

Help with DAX conditional count of orders

Hello,   Looking for a bit of help with a measure I can't seem to quite get right.   I have a table that has sales order lines.  The Order # is repeated multiple times if there are different SKU'...
  • rrafferty37's avatar
    rrafferty37
    7 years ago

    Greg_Deckler Thanks Greg, I will be sure to include in the future. I actually found an answer:

     

    Qualified Order Count = 

    Var units = Order Units

    Return

    Calculate( 

        DistinctCount('Table 1',

       filter('Table 1', units >=5))

     

    Passing the measure as a variable seems to do the trick, althought I am not 100% certain as to why.