Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

PowerBI DAX - Calculate, CountRows, RelatedTable, get TOP 1

I have the following PowerBI DAX Measure. It has to be this complex for a number of reasons due to the structure of the data. The measure works fine, and it returns me the number of active contracts ...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Thanks SuperTom, 

     

    I am on my way using similar: 

     

    ContractPerCustomer = SUMX(Customer, IF([ActiveContracts] > 0, 1, 0))

     

    Cheers