How to calculate the value of the same day of the previous month.
Using a Table Calculation and the LOOKUP function, you can calculate the value on the same day of the previous month.
1. Connect to Sample - Superstore data source.
2. Right click [Order Date] and drag and drop it to the Columns shelf and select [MONTH(Order Date)].
3. Right click [Order Date] and drag and drop it to the Columns shelf and select [DAY(Order Date)].
4. Double click [Sales] measure and to add it to the view.
5. Create a new Calculation field named "Sales(Previous Month)" with the following calculations:
LOOKUP(SUM([Sales]),-1)
6. Double click [Sales(Previous Month)] and to add it to the view.
7. Right click [Sales(Previous Month)] in Measure Values, and select [Edit Table Calculation]. Set the following values.
Compute Using : Specific Dimensions
Check only Month of Order Date.
Sort order : Specific Dimensions.
001460235

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.