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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
TRADER083
Helper I
Helper I

Line graph showing decrease in cumulative values as items are matured

Hi everyone, 

 

I have the following simplified raw data:

 

MaturityValue
2050-Jan 1
2055-Dec 5
2060-Mar 2

 

I would like to create a measure and a line chart (or column) that present the following modified data:

 

MaturityValue (sum where maturity is greater this date)
2050-Jan 8
2055-Dec 7
2060-Mar 2

 

Thank you,

2 ACCEPTED SOLUTIONS
zenisekd
Super User
Super User

If you want to create a column, you can use: 

Value (sum where maturity is greater this date) = CALCULATE( SUM('YourTableName'[Value]), FILTER( 'YourTableName', 'YourTableName'[Maturity] >= EARLIER('YourTableName'[Maturity]) ) )

If you want a measure, then use: 
Value (sum where maturity is greater this date) = CALCULATE( SUM('YourTableName'[Value]), FILTER( ALL('YourTableName'), 'YourTableName'[Maturity] >=
SELECTEDVALUE('YourTableName'[Maturity]) ) )

Kudos and mark as solution appreciated.

View solution in original post

ThxAlot
Super User
Super User

ThxAlot_0-1704223025528.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

3 REPLIES 3
ThxAlot
Super User
Super User

ThxAlot_0-1704223025528.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Thank you. For my dataset, the calculation on this measure was much faster than the other solution.

zenisekd
Super User
Super User

If you want to create a column, you can use: 

Value (sum where maturity is greater this date) = CALCULATE( SUM('YourTableName'[Value]), FILTER( 'YourTableName', 'YourTableName'[Maturity] >= EARLIER('YourTableName'[Maturity]) ) )

If you want a measure, then use: 
Value (sum where maturity is greater this date) = CALCULATE( SUM('YourTableName'[Value]), FILTER( ALL('YourTableName'), 'YourTableName'[Maturity] >=
SELECTEDVALUE('YourTableName'[Maturity]) ) )

Kudos and mark as solution appreciated.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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