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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.