Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

DAX SQL window function equivalent

Hello,   I would like to create a calculated column that returns a total row count per customer, as below.   http://imgur.com/WJ2MzJS   To do this with SQL, one approach would be to use a windo...
  • Eric_Zhang's avatar
    9 years ago

    Anonymous

    Check

     

    Column =
    COUNTAX (
        FILTER ( 'Table', EARLIER ( 'Table'[Customer No.] ) = 'Table'[Customer No.] ),
        'Table'[Product Purchased]
    )

     

     

    A good site for your reference.