Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

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 2
v-jingzhang
Community Support
Community 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.

lbendlin
Super User
Super User

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.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.