I am trying to figure out why calculation to show previous month load volume is not adding correctly.
Currently the Formula I am using-
For Some reason It adds up the previous calculation instead of pulling only the last month value.
The table should read
blank, 510, 527, 843 etc.
Go to Solution.
You can try the following methods:
1. Create a new date calculation column to calculate the actual time of the previous month of the current row.
PARALLELPERIOD ( 'Table'[Mouth], -1, MONTH )
2. Use the Date column to match the value that Last Mouth should display.
Last Month =
MIN ( 'Table'[Load Volume] ),
FILTER ( 'Table', 'Table'[Mouth] = EARLIER ( 'Table'[Date] ) )
3. If you don't want to display the Date column, you can choose to hide it in the view.
Community Support Team _Charlottez Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
View solution in original post
pls try to add a calendar table and use DATEADD.
Proud to be a Super User!
Click here to read more about the December 2021 Updates!
Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.
Mark your calendars and join us for our next Power BI Dev Camp!