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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
isThatAFrog
Frequent Visitor

cumulative Graph with dynamic start value

Hi Guys,

I have a graph that i cant get to filter on the effective date on because the query is created so that it calculates the startdata backwards and adds it the day before the first date, is there a way to keep the values from the first date when applying filter on the effective date
Formula

MoveCalc Cumulative =
CALCULATE([MoveCalc Total],
FILTER(ALLSELECTED('Mobility All'),
    'Mobility All'[Effective date] <= MAX('Mobility All'[Effective date])))
Without filter

isThatAFrog_0-1684748458146.png

With filter applied 

isThatAFrog_1-1684748560627.png

Maybe with some first date or ALL min value??

 

Many thanks for any help!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @isThatAFrog , 

I created some data: 

veqinmsft_0-1684915701527.png

Do you mean that in the filtered visual, the value of the current first date is the value of the first date after the filter plus the value of the day before the first date after the filter? 

 

1. Create measure: 

Measure = 
var _date= 
MINX(ALLSELECTED('Mobility All'),[Effective date]) 
var _mindate= 
MAXX( 
    FILTER(ALL('Mobility All'),'Mobility All'[Effective date]<_date),[Effective date]) 
return 
SUMX( 
    FILTER(ALLSELECTED('Mobility All'), 
   'Mobility All'[Effective date]<=MAX('Mobility All'[Effective date])),[MoveCalc Total]) 
+ 
SUMX( 
    FILTER(ALL('Mobility All'),'Mobility All'[Effective date]=_mindate),[MoveCalc Total]) 

 2. Result: 

veqinmsft_1-1684915701529.png

If it doesn't meet your expectations, can you express your results in the form of pictures, we can better help you 

 

Best Regards, 

Liu Yang 

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

1 REPLY 1
Anonymous
Not applicable

Hi  @isThatAFrog , 

I created some data: 

veqinmsft_0-1684915701527.png

Do you mean that in the filtered visual, the value of the current first date is the value of the first date after the filter plus the value of the day before the first date after the filter? 

 

1. Create measure: 

Measure = 
var _date= 
MINX(ALLSELECTED('Mobility All'),[Effective date]) 
var _mindate= 
MAXX( 
    FILTER(ALL('Mobility All'),'Mobility All'[Effective date]<_date),[Effective date]) 
return 
SUMX( 
    FILTER(ALLSELECTED('Mobility All'), 
   'Mobility All'[Effective date]<=MAX('Mobility All'[Effective date])),[MoveCalc Total]) 
+ 
SUMX( 
    FILTER(ALL('Mobility All'),'Mobility All'[Effective date]=_mindate),[MoveCalc Total]) 

 2. Result: 

veqinmsft_1-1684915701529.png

If it doesn't meet your expectations, can you express your results in the form of pictures, we can better help you 

 

Best Regards, 

Liu Yang 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.