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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
malkha
Regular Visitor

Measure Total not correct

 

why isnt this measure below totalling correctly?my cummlative formula works fine until it hits december. where December is the forecast data. As you can see on the table on the right. i have the correct value showing fore forecast but total is incorrect.

 

Untitled.png

 

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @malkha 

try to use IF(CALCULATE(SUM(....)), statement

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
malkha
Regular Visitor

i am not sure if i am typing your equasion wrong, but i am still yeilding the same total. @az38 

 

Untitled.png

 

az38
Community Champion
Community Champion

@malkha 

what result do you expect in total row? it should be sum of all rows or logic IF should be implemented on whole data massive?

also, you could try smth like that

Measure = 
sumx('Fcst Vs Actuals'; 
if(calculate(sum('Fcst Vs Actuals'[Capital_Actuals]))=0;
calculate(sum('Fcst Vs Actuals'[Capital_Forecast]));
calculate(sum('Fcst Vs Actuals'[Capital_Actuals]))))

 

do not hesitate to give a kudo to useful posts and mark solutions as solution

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.