Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Incorrect total in bar chart

Hi everyone, We have a bar chart like:  The Total Data Label is showing a SUM of the values, however, if we change the chart type to Matrix, we see this: Which is what we...
  • v-xulin-mstf's avatar
    5 years ago

    Hi Anonymous

     

    You can create a measure as:

    Total = 
    VAR __table = SUMMARIZE('Table1',[Teanologia],"_value",sum(values))
    RETURN
    IF(HASONEVALUE(Table1[Teanologia]),sum(values),SUMX(__table,[_value]))

     

    Best Regards,
    Link

     

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