Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

SUM not calculating the right answer

Hi All,

 

I am using tabular model for my PBI reports. I have forecast numbers coming from the cube . Now I want to sum the forecast numbers . It should be a very straight calcualtion but my measure is not giving me the right answer. I am lost and not able to understand the issue.

 

Measure 4 :=

calculate(sum('FACT SAVINGS'[FORECAST]))
INITIATIVE CODEMONTH SHORTFORECASTMeasure 4
SAV002855Jan00
SAV002855Mar00
SAV002855Jan40200
SAV002855Jan400040000
SAV002855Jan30000150000
SAV002855Jan100000500000
SAV002855Jan195401195401
SAV002855Jan2800001400000
SAV002855Jan380000380000
SAV002855Jan400000400000
SAV002855Jan9000004500000
SAV002855Jan13000001300000
SAV002855Jan274604813730238.75
Total  22595839.75

2 Replies

  • Your sample data is missing an index column. Please provide sanitized sample data that fully covers your issue.

    Please show the expected outcome based on the sample data you provided.

  • v-jingzhang's avatar
    v-jingzhang
    Icon for Community Support rankCommunity Support

    Hi Anonymous 

     

    Do you have multiple same FORECAST value for the same month and same initiative code in the source table? Try adding FORECAST column to the table visual and select SUM aggregation for it to check whether the sum result is equal to the measure result. If they are equal, I think the measure is correct. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.