Forum Discussion
Moving data value up and across
3 Replies
- lbendlin
Super User
Please provide sanitized sample data that fully covers your issue. I cannot help you without usable sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 - v-chenwuz-msft
Community Support
Hi PFinnegan ,
Assume that the column field in the matrix table is [number], then use the following formula to move the rows.
Total Cash Month on Month Adjustment (test) =VAR EarlierTime =CALCULATE (MAX ( View_D_DynamicAgeing[Month] ),FILTER (ALLSELECTED ( View_D_DynamicAgeing[Month] ),View_D_DynamicAgeing[Month] <( SELECTEDVALUE ( View_D_DynamicAgeing[Month] ) + VALUE ( SELECTEDVALUE ( 'View_D_DynamicAgeing'[number] ) ) - 1)))VAR EarlierMeasureValue =CALCULATE ( [Total Cash] , View_D_DynamicAgeing[Month] = EarlierTime )RETURNCALCULATE(Measure_Table[Total Cash] -EarlierMeasureValue)Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- PFinneganRegular Visitor
Please see snip of solution I'm looking for:
I've included the logic, column/row names and the data types of each data source that make up this matrix.