Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

SUM ALL by Row

Hi there,

 

I would like the column 'total_phrase_all_pixel' to simply keep the results as shown:

 

However when I use the pixel slicer on the right Ican't get the number to remain like it does for total_all_pixel which uses the ALL function in CALCULATE SUM

 

 Is it possible to do a SUM ALL by row calculation?

 

Cheers

 

  • Anonymous ,

     

    Use ALL(Table) instead of ALL(Table[Column]) like below:

    total_all_pixel =
    CALCULATE ( SUM ( 'Table'[pixel_count] ), ALL ( 'Table' ) )
    

    Community Support Team _ Jimmy Tao

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

3 Replies

  • Stachu's avatar
    Stachu
    Community Champion

    are these calculated measures?
    What;s the syntax for [total_pixel]?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for getting back,

      total_pixel = CALCULATE(SUM('Table'[pixel_count]),ALLSELECTED())
      total_all_pixel = CALCULATE(SUM('Table'[pixel_count]),ALL())
      • v-yuta-msft's avatar
        v-yuta-msft
        Community Support

        Anonymous ,

         

        Use ALL(Table) instead of ALL(Table[Column]) like below:

        total_all_pixel =
        CALCULATE ( SUM ( 'Table'[pixel_count] ), ALL ( 'Table' ) )
        

        Community Support Team _ Jimmy Tao

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