Forum Discussion
Need custom Column
- 3 years ago
Hi tangutoori ,
You can use the code below to create a Calculated Column to get the expect result (please adjust the code as you need):
Max Current = VAR GroupId = 'Table'[Group ID] VAR MaxSerialNumber = CALCULATE( MAX('Table'[Serial Number]), FILTER('Table', 'Table'[Group ID] = GroupId) ) RETURN CALCULATE( MAX('Table'[Current]), FILTER('Table', 'Table'[Serial Number] = MaxSerialNumber) )Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution โ๏ธor giving it a kudoe ๐
Thanks!
Best regards,
Joao Ribeiro
Hi tangutoori ,
You can use the code below to create a Calculated Column to get the expect result (please adjust the code as you need):
Max Current =
VAR GroupId = 'Table'[Group ID]
VAR MaxSerialNumber =
CALCULATE(
MAX('Table'[Serial Number]),
FILTER('Table', 'Table'[Group ID] = GroupId)
)
RETURN
CALCULATE(
MAX('Table'[Current]),
FILTER('Table', 'Table'[Serial Number] = MaxSerialNumber)
)
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution โ๏ธor giving it a kudoe ๐
Thanks!
Best regards,
Joao Ribeiro