Forum Discussion
vanessafvg
Community Champion
9 years agoCurrent Fiscal month sales - DAX Error
I want to get the current sales in month for the Fiscal Date this is my DAX Statement Current Month Sales = CALCULATE( SUM(Registrations[Revenue]), FILTER('Date','Date'[FYMonthInYear] = MON...
- 9 years ago
Please try this
Current Month Sales = CALCULATE(
SUM('Registrations'[Revenue]),
FILTER(
'Date',
'Date'[FYMonthInYear]=MONTH(NOW())
&& 'Date'[FYYear]=YEAR(Now()) )
)There is a really really subtle difference in where you have your closing brackets.
Phil_Seamark
Microsoft Employee
9 years agoPlease try this
Current Month Sales = CALCULATE(
SUM('Registrations'[Revenue]),
FILTER(
'Date',
'Date'[FYMonthInYear]=MONTH(NOW())
&& 'Date'[FYYear]=YEAR(Now()) )
)
There is a really really subtle difference in where you have your closing brackets.
computermike
Helper I
8 years agoVery Nice
So say we are in Feb. and it works great. But when I filter my Pivot table for Jan, the values disappear. How could I alter my query, so it is unaffected by a date filter in my pivot table?