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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi everyone,
I have the following simplified raw data:
Maturity | Value |
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:
Maturity | Value (sum where maturity is greater this date) |
2050-Jan | 8 |
2055-Dec | 7 |
2060-Mar | 2 |
Thank you,
Solved! Go to Solution.
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.
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.
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.