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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.