The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
id | value | other misc |
1 | 10 | ags |
1 | 10 | saaas |
1 | 10 | sasaS |
2 | 5 | REEWWR |
To this :
id | value |
1 | 10 |
2 | 5 |
Solved! Go to Solution.
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
No worries, glad to help!
Cheers
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....
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |