Forum Discussion
Manar
Helper II
8 years agoDifference between 2 columns in Matrix
Hi, I have the following Matrix and I would like to add another column with the difference between the rates of the 2 different periods columns (201803 & 201802), these 2 columns are from the same co...
- 8 years ago
HI Manar
Try this one
Measure = CALCULATE ( SUM ( ExchangeRatesFacts[ExchangeRate] ), FILTER ( ALL ( ExchangeRatesFacts[ReportingPeriod] ), ExchangeRatesFacts[ReportingPeriod] = [CurrentReportingPeriod] ) ) - CALCULATE ( SUM ( ExchangeRatesFacts[ExchangeRate] ), FILTER ( ALL ( ExchangeRatesFacts[ReportingPeriod] ), ExchangeRatesFacts[ReportingPeriod] = [LastReportingPeriod] ) )
Zubair_Muhammad
Community Champion
8 years agoHI Manar
Try this one
Measure =
CALCULATE (
SUM ( ExchangeRatesFacts[ExchangeRate] ),
FILTER (
ALL ( ExchangeRatesFacts[ReportingPeriod] ),
ExchangeRatesFacts[ReportingPeriod] = [CurrentReportingPeriod]
)
)
- CALCULATE (
SUM ( ExchangeRatesFacts[ExchangeRate] ),
FILTER (
ALL ( ExchangeRatesFacts[ReportingPeriod] ),
ExchangeRatesFacts[ReportingPeriod] = [LastReportingPeriod]
)
)Manar
Helper II
8 years agoZubair_Muhammad Big Thank you!