Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
newpi
Helper V
Helper V

create a summarized table with unique calculated values.

I have a table as follows.

 

account IDcomputer namecomputer versionavailable or not (1 or 0 values)
123F11.11
123F11.01
123F21.11

 

 

I want to create a calculated table for which I used the summarize function and it got me unique values of account id and computer name. But when I sum the availability column, its summing the F1 computer twice as its a duplicate in the original table. Bascially I want to ignore the computer version column and only sum by account id column.

Output should be :


acct IDcomputer nametotal computers available by acctid
123F12
123F22

 

 

I have many columns similar to available or not that I need to summarize.

1 ACCEPTED SOLUTION

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] )
        )
)

V-lianl-msft_0-1601971538983.png

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.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@newpi , with data you shared F2 will not come 2. May be you have more data

 

In a visual if use the below measure with acct ID, computer name

Sum(Table[available])

It should work

 

Or a new table

summarize(Table, Table[acct ID], Table[computer name],"Sum available",Sum(Table[available]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak F2 is a typo. Should be 1 . But, I've tried Summarize same as your formula and that didn't work. I want to create a table so that I can use columns as a filter on page. Also, that table has date so if I can use Max(Date) or something to take only max of the values but dint figure out the formula.

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] )
        )
)

V-lianl-msft_0-1601971538983.png

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.