Forum Discussion
Thomas897
8 years agoHelper I
cross multiplication
Hi everyone, I'd llike to calculate : (expense 2017 - expense 2016) x (volume 2017 - volume 2016). I have a problem because of the sameperiodlastyear filter, it is not possible to use it twice o...
- 8 years ago
Thomas897 wrote:
Hi everyone,
I'd llike to calculate : (expense 2017 - expense 2016) x (volume 2017 - volume 2016).
I have a problem because of the sameperiodlastyear filter, it is not possible to use it twice on the same formula.
Thank you :)
You can try to create a measure as
Measure = ( SUM ( Table1[expense] ) - CALCULATE ( SUM ( Table1[expense] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) ) ) / ( SUM ( Table1[volume] ) - CALCULATE ( SUM ( Table1[volume] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) ) )
Eric_Zhang
8 years agoMicrosoft Employee
Thomas897 wrote:
Hi everyone,
I'd llike to calculate : (expense 2017 - expense 2016) x (volume 2017 - volume 2016).
I have a problem because of the sameperiodlastyear filter, it is not possible to use it twice on the same formula.
Thank you :)
You can try to create a measure as
Measure =
(
SUM ( Table1[expense] )
- CALCULATE ( SUM ( Table1[expense] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) )
)
/ (
SUM ( Table1[volume] )
- CALCULATE ( SUM ( Table1[volume] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) )
)