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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Artefact
Helper II
Helper II

temporary table with unique values with calculatetable

Hi ,

I'm trying to make a temporary table to use with SUMX. 1 with unique id's. The base table has many non unique id's. All the rows with the same id have the same value in another column.

My idea was CALCULATETABLE(tablename,(VALUES(tablename[id])))
but this returns the whole basetable with all non unique id's. So all the rows.

 

When I omit the tablename as the first parameter, of course the other columns are not there, but at least the one-column table has only the unique id.

How can a make a table with 2 columns : one with the unique key and the corresponding other value in the other column?

So from this

idvalueother misc

1

10ags
110saaas
110sasaS
25REEWWR


To this :

idvalue
110
25

 

1 ACCEPTED SOLUTION
Jos_Woolley
Solution Sage
Solution Sage

Not sure I'm not missing something, but I would have thought you could use simply:

New Table =
SUMMARIZE(
    'Table',
    'Table'[id],
    'Table'[value]
)

Regards

View solution in original post

3 REPLIES 3
Jos_Woolley
Solution Sage
Solution Sage

No worries, glad to help!

Cheers

Jos_Woolley
Solution Sage
Solution Sage

Not sure I'm not missing something, but I would have thought you could use simply:

New Table =
SUMMARIZE(
    'Table',
    'Table'[id],
    'Table'[value]
)

Regards

Jos, thanks for the quick reply. I stubbornly focussed on the wrong path....

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.