Forum Discussion
Running Total Difference between each Time Period
- 7 years ago
Hi nates05 ,
You can try my method:
At first, create a new column "rank".rank = RANKX ( 'Table', 'Table'[Period],, ASC, DENSE )
Then create your goal column.
Sold per period = VAR a = CALCULATE ( FIRSTNONBLANK ( 'Table'[Total Sold], 1 ), FILTER ( 'Table', 'Table'[Serial Codes] = EARLIER ( 'Table'[Serial Codes] ) && 'Table'[rank] = EARLIER ( 'Table'[rank] ) - 1 ) ) RETURN 'Table'[Total Sold] - aHere is the result.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Does the image posted represent source data or the expected output? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
You might find some of these links helpful, it is hard to say:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008
https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365