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

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

Reply
Oopa
Frequent Visitor

Calculate first day when value is greater than start value

Hi,

 

I try to generate measure which should return first date where cumulative amount is greater than start value. I did measure 

First_date = CALCULATE(FIRSTDATE(Cumulative_amount[Date]);FILTER(Cumulative_amount;Cumulative_amount[Cumulative_amount]>Start_amount[Start_value_amount])) but this gives the results below which are not correct. E.g for date 2.1.2020 I would like to see 17.1.2020 etc.
 
Example_snip.JPG



 
 
1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Oopa ,

 

We should create a measure as below to work on it.

Measure = 
IF (
    SUM ( Start_amount[Start_value_amount] ) = BLANK (),
    BLANK (),
    CALCULATE (
        MIN ( 'Cumulative_amount'[date] ),
        FILTER (
            ALL ( Cumulative_amount ),
            Cumulative_amount[Cumulative_amount] > SUM ( Start_amount[Start_value_amount] )
        )
    )
)

Capture.PNG

 

For more details, please check the pbix as attached.

 

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

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Oopa ,

 

We should create a measure as below to work on it.

Measure = 
IF (
    SUM ( Start_amount[Start_value_amount] ) = BLANK (),
    BLANK (),
    CALCULATE (
        MIN ( 'Cumulative_amount'[date] ),
        FILTER (
            ALL ( Cumulative_amount ),
            Cumulative_amount[Cumulative_amount] > SUM ( Start_amount[Start_value_amount] )
        )
    )
)

Capture.PNG

 

For more details, please check the pbix as attached.

 

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

Thank you very much it works perfectly!

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.