Forum Discussion
Anonymous
4 years agoNot applicable
CALCULATETABLE syntax?
Hello Can CALCULATETABLE create a table from another table using: 1) columns matching (in) a specific list/array of column names 2) rows for each separately or all of the above filtered columns...
- Anonymous4 years ago
Hi Anonymous ,
I think you may try this code to create a new table.
Table 2 = SELECTCOLUMNS ( FILTER ( 'Table', VAR _MAX_COL2 = CALCULATE ( MAX ( 'Table'[Col2] ), ALLEXCEPT ( 'Table', 'Table'[Col1] ) ) RETURN 'Table'[Col2] = _MAX_COL2 ), "Col1", 'Table'[Col1], "Col3", 'Table'[Col3] )My Sample:
Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
Hi Anonymous ,
I think you may try this code to create a new table.
Table 2 =
SELECTCOLUMNS (
FILTER (
'Table',
VAR _MAX_COL2 =
CALCULATE ( MAX ( 'Table'[Col2] ), ALLEXCEPT ( 'Table', 'Table'[Col1] ) )
RETURN
'Table'[Col2] = _MAX_COL2
),
"Col1", 'Table'[Col1],
"Col3", 'Table'[Col3]
)
My Sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.