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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
paglioz3
New Member

problem with total progressive

Hi all,

I need to calculate a progressive value in base of the period filtered by user, from older to laster, but the result sum start from the last date. I use the script:

 

progressive_value=
VAR MinDate = MIN ( 'CALENDAR'[Date] ) -- Saves the last visible date
RETURN CALCULATE ([value], 'CALENDAR'[Date] >= MinDate )
 
And this is the actual result:

datevalueprogressive_value
nov-19334838393
dic-19467835045
gen-20356630367
feb-20302026801
mar-20170423781
apr-201065222077
mag-20145711425
giu-2015569968
lug-2039878412
ago-2036974426
set-20729729


Any suggestion?

1 ACCEPTED SOLUTION

Hi  @paglioz3 ,

 

Try below expression:

progressive_value =
VAR MinDate =
MINX ( ALLSELECTED ( 'CALENDAR'),'CALENDAR'[Date] ) -- Saves the last visible date
RETURN
CALCULATE ( [value], 'CALENDAR'[Date] >= MinDate )

 

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

4 REPLIES 4
vanessafvg
Community Champion
Community Champion

you mean like this?

progressive_value =
VAR MinDate =
MIN ( ALLSELECTED ( 'CALENDAR'[Date] ) ) -- Saves the last visible date
RETURN
CALCULATE ( [value], 'CALENDAR'[Date] >= MinDate )




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thank's but no, with ALLSELECTED funtion returned an error (

the MIN function accepts only a column reference as an argument
)

for completeness, the measure [value] = calculate(sum([import]))

Hi  @paglioz3 ,

 

Try below expression:

progressive_value =
VAR MinDate =
MINX ( ALLSELECTED ( 'CALENDAR'),'CALENDAR'[Date] ) -- Saves the last visible date
RETURN
CALCULATE ( [value], 'CALENDAR'[Date] >= MinDate )

 

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Thanks!

Below the complete code:

 
progressive_value =
VAR MinDate = MINX ( ALLSELECTED ( 'CALENDAR'),'CALENDAR'[Date] ) -- Saves the last visible date
var MaxDate = MAX ('IND'[Date])
var Value= CALCULATE (IND[Amount])
RETURN
CALCULATE ( Value, 'CALENDAR'[Date] >= MinDate, 'CALENDAR'[Date] <= MaxDate )

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.