Forum Discussion
Calculate a Max value for differente matriculates
- 4 years ago
Hi Fabiopb
Sorry for the late reply. You can first create a table with below code. This will return you a table with distinct matricules and their maximum diameter values.
Table 2 = SUMMARIZE('Table','Table'[Matricule],"Max Diameter",MAX('Table'[Diameter]))Then add a new column in above new table.
Max Diameter Count = COUNTROWS ( FILTER ( 'Table', 'Table'[Matricule] = 'Table 2'[Matricule] && 'Table'[Diameter] = 'Table 2'[Max Diameter] ) )Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hello,
Thank you for the response. I am actually looking for a solution like this:
I would prefer to calculate the new columns in a new table with the matricules not repeated. I am looking for a solution like that because the main table has a lot of rows which I believe including new calculated columns would be worse for the structure. If you could help with that I would appreciate it.
Hi Fabiopb
Sorry for the late reply. You can first create a table with below code. This will return you a table with distinct matricules and their maximum diameter values.
Table 2 = SUMMARIZE('Table','Table'[Matricule],"Max Diameter",MAX('Table'[Diameter]))
Then add a new column in above new table.
Max Diameter Count =
COUNTROWS (
FILTER (
'Table',
'Table'[Matricule] = 'Table 2'[Matricule]
&& 'Table'[Diameter] = 'Table 2'[Max Diameter]
)
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.