Forum Discussion
ekaponkratova
7 years agoFrequent Visitor
Calculation when no country is selected
I have the below dataset and user country as a filter. The task is to calculate the revenue - calculated as sum paid in this month - sum paid in the previous month. It should be calculated in USD. T...
- 7 years ago
Hi ekaponkratova ,
To update your measure as below.
final_calc = IF ( ISFILTERED ( Sheet1[country] ) = FALSE (), CALCULATE ( SUM ( Sheet1[cum sum paid] ), DATEADD ( 'calendar_3'[Date], -1, MONTH ), Sheet1[country] = "Spain" ) )
Anonymous
7 years agoNot applicable
ekaponkratova - You'll want to do something like SUMX(YourTable[Raw Revenue]*ExchangeRates[Rate])
Because you need to calculate the value for each day and then sum them up.