Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

MAKE SUM() IGNORE ROW CONTEXT

Hi,   I am trying to create a measure that will calculate the sum of another calculation that converts from seconds to hours that runs per row in "activity" table and returns the total of the sum i...
  • Greg_Deckler's avatar
    Greg_Deckler
    7 years ago

    Anonymous - Well it is doing a SUMMARIZE so that can take some time, See if this speeds it up:

     

    Measure 3 = 
    VAR __date = MAX([Date])
    VAR __table = SUMMARIZE(FILTER(ALL('Table4'),[Date]=__date),[Emp_no],[Date],"__hours",SUM([S_Total])/60/60)
    RETURN
    MAXX(__table,[__hours])

    As for the 2nd one, that should be equivalent. I created a second measure just like it and got the same results so not sure what is going on there. See attached, Table4, Page 3.