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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors