Forum Discussion
Optimizing Dax formula
- 6 years ago
Anonymous
I would venture it is because your RANKX function doesn't have the column reference to rank the values by. Include a column reference after the table reference:
RANKX ( MonthTable, MonthTable[...], CALCULATE ( AVERAGE ( Date[DayOfMonth] ) ),, ASC )
See if that works.
EDIT: you might also need an ALL or ALLSELECTED before the table expression, depending on the context you wish to calculate de Rank by:
RANKX ( ALLSELECTED(MonthTable), MonthTable[...], CALCULATE ( AVERAGE ( Date[DayOfMonth] ) ),, ASC )
what error message are you getting?
- Anonymous6 years agoNot applicable
It says the syntax is incorrect but everything looks fine
- vanessafvg6 years agoCommunity Champion
www.daxformatter.com isn't throwing any errors.
are you creating a calculated measure or calculated column? also have you run this successfully before?
- Anonymous6 years agoNot applicable
I'm creating a calculated column, yaa it was running before but now it's not
This is the error i get