Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Calculate sum Max

Hello, Help me please, I'd like to calculate the maximum values of a table by municipality and month, and then sum up the maximum values obtained. The data is sorted by as shown in the image Mo...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, Anonymous 

    According to your description, I created the following sample data and wrote a calculated column of DAX expressions based on these data:

    DAX formula:

    Column =
    VAR _name = 'Sheet4 (3)'[commune]
    VAR _table =
        FILTER ( 'Sheet4 (3)', 'Sheet4 (3)'[commune] = _name )
    RETURN
        CALCULATE ( MAXX ( _table, 'Sheet4 (3)'[donnée] ) )
    

    The result is as follows:

    In the scenario of Commune A, the biggest value of finding each month is 6. I provided the pbix file used this time. If the above DAX can help you, it is great.

     

     

     

    How to Get Your Question Answered Quickly

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

    Best Regards

    Jianpeng Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.