Created
November 24, 2019 20:11
-
-
Save aabundez/520a1ce8e533b06aabef97a1d18570e0 to your computer and use it in GitHub Desktop.
Prior period DAX calculation using automatic time intelligence in Power BI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prior Month Sales = CALCULATE ( SUM( Sales[Revenue] ), PREVIOUSMONTH( Sales[Date].[Date] ) ) | |
// Quick measure uses DATEADD function instead | |
Prior Month Sales = CALCULATE ( SUM( Sales[Revenue] ), DATEADD( Sales[Date].[Date], -1, MONTH ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment