Forum Discussion
sqldev2017
7 years agoMicrosoft Employee
Help with Simple DAX formula
I am doing something like this - PreviousMonth = FORMAT(CALCULATE(MIN(DimDate[Month]), FILTER(DimDate, DimDate[Month_Year] = [SelectedMonthYear]) ), "String") - Min(DimDate[Month]) ret...
- 7 years ago
Try storing the MEASURE value in a variable first
Revenue = VAR myMEASURE = [MonthYear] RETURN CALCULATE ( SUM ( fact[Revenue] ), FILTER ( fact, fact[fiscalMonth] = myMEASURE ) )
MFelix
7 years agoSuper User
Hi sqldev2017,
What do you want to use this measure for? what is the context and calculation you arre making on the other measure where this one is used?
Regards,
MFelix