Forum Discussion

JollyRoger01's avatar
JollyRoger01
Helper III
5 years ago
Solved

How to replicate Excel COUNTIF formula?

I am struggling to get my head around the basic layout of DAX, even a simple COUNTIF formula. I have two tables in my data model connected by a field called System. I just wanted to calculate in this...
  • Fowmy's avatar
    5 years ago

    JollyRoger01 

    I guess you have a one-to-many relationship from this table to table1. Add the following calculated column to the table on the one side

    Count System = 
    CALCULATE(
        COUNTA(Table1[System]),
        RELATEDTABLE(Table1)
    )