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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
avinrosh
Frequent Visitor

measure calculation not working as intended

Hi I have created a measure to calculate cumulative value.

My measure looks something like this

 

Probabalized = CALCULATE(sum(AllData[Probablised]),filter(AllData, (AllData[Status]="Secured" || AllData[Status]="Pipeline") && ((AllData[Period]>= EOMONTH(TODAY(),-1) && AllData[Period]<= date(2018,12,31)))))

 

And I get the output like this.

Revenue.JPG

When I modify the measure as follows, with All

 

Probabalized = CALCULATE(sum(AllData[Probablised]),filter(All(AllData), (AllData[Status]="Secured" || AllData[Status]="Pipeline") && ((AllData[Period]>= EOMONTH(TODAY(),-1) && AllData[Period]<= date(2018,12,31)))))

 

Revenue.JPGWhereas I want is cumulutavie sum over the period. Please help me to get me what I am looking for.

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @avinrosh,

 

I would suggest you create an independent date table and make some changes to the formula. It should work like below.

Probabalized =
CALCULATE (
    SUM ( AllData[Probablised] ),
    AllData[Status] IN { "Secured", "Pipeline" },
    FILTER (
        ALL ( datetable ),
        datetable[date] >= EOMONTH ( TODAY (), -1 )
            && datetable[date] <= MAX ( datetable[date] )
    )
)

If you share a sample, we can make it more clear.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @avinrosh,

 

Could you please tell me if you solved it? Can you share the answer or mark the proper answer as a solution, please?

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @avinrosh,

 

I would suggest you create an independent date table and make some changes to the formula. It should work like below.

Probabalized =
CALCULATE (
    SUM ( AllData[Probablised] ),
    AllData[Status] IN { "Secured", "Pipeline" },
    FILTER (
        ALL ( datetable ),
        datetable[date] >= EOMONTH ( TODAY (), -1 )
            && datetable[date] <= MAX ( datetable[date] )
    )
)

If you share a sample, we can make it more clear.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors