Forum Discussion

newpi's avatar
newpi
Helper V
5 years ago
Solved

create a summarized table with unique calculated values.

I have a table as follows.   account ID computer name computer version available or not (1 or 0 values) 123 F1 1.1 1 123 F1 1.0 1 123 F2 1.1 1     I want to create a c...
  • V-lianl-msft's avatar
    V-lianl-msft
    5 years ago

    Hi newpi ,

     

    Try this:

    Table 2 =
    SUMMARIZE (
        'Table',
        'Table'[account ID],
        'Table'[computer name],
        "total computers available by acctid",
            CALCULATE (
                DISTINCTCOUNT ( 'Table'[computer name] ),
                ALLEXCEPT ( 'Table', 'Table'[account ID] )
            )
    )

    Sample .pbix

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.