Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Table shows no data with 0

Hi all,   I'm having a trouble with the table that I'm using in my report.   The data that I received is the following:   There is also a 'Person D' wich has no active devices on his name...
  • v-chuncz-msft's avatar
    v-chuncz-msft
    8 years ago

    Anonymous,

     

    You may refer to the following DAX that creates a new table.

    Table =
    SUMMARIZECOLUMNS (
        Table1[Agent Name],
        "Count", CALCULATE (
            DISTINCTCOUNT ( Table2[Active Devices] ),
            FILTER ( Table2, Table2[Agent Name] = MAX ( Table1[Agent Name] ) )
        )
            + 0
    )