Forum Discussion
How do I use RANK() to rank date
- 2 years ago
hello Anonymous
please check if this accomodate your need.
create new calculated column with following DAX:
Rank =
var _Rank =
RANKX(
FILTER(
'Table',
'Table'[FCST_OUT_TIME]
),
'Table'[FCST_OUT_TIME],
,ASC
)
Return
IF(
ISBLANK('Table'[FCST_OUT_TIME]),
0,
_Rank
)Hope this will help you.
Thank you.
hello Anonymous
please check if this accomodate your need.
create new calculated column with following DAX:
Rank =
var _Rank =
RANKX(
FILTER(
'Table',
'Table'[FCST_OUT_TIME]
),
'Table'[FCST_OUT_TIME],
,ASC
)
Return
IF(
ISBLANK('Table'[FCST_OUT_TIME]),
0,
_Rank
)
Hope this will help you.
Thank you.
- Anonymous2 years agoNot applicable
Irwan The error is as above. How can I fix it? Thank you!
- Irwan2 years agoSuper User
hello Anonymous
it couldnt find the column probably because the column name that i wrote is different from your column name.
otherwise please check whether you use measure or calculated column.
Jihwan_Kim 's solution is using measure while my solution is calculated column.
That systax error is Jihwan_Kim 's solution.
you are free to use either of them depend on your needs but please do take a note that writing DAX in calculated column and measure is slightly different.
Hope this will help you.
Thank you.
- Anonymous2 years agoNot applicable
Hi, thanks for explanation. It works!