The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.