Forum Discussion

Fabiopb's avatar
Fabiopb
Frequent Visitor
4 years ago
Solved

Calculate a Max value for differente matriculates

Hello!   I have a table with different values of diameter for different matricules. I need to calculate which is the max diameter for each matricule and after that calculate how many times that dia...
  • v-jingzhang's avatar
    v-jingzhang
    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.