Forum Discussion

pstanek's avatar
pstanek
Post Patron
9 years ago
Solved

TOPN

I try to create TOP 20, but I can´t find function RANKX.  I work in direct query. Is there possible to create top 20 in direct query?
  • radpir's avatar
    9 years ago

    hi,

     

    some of the functions are disabled by default in DirectQuery mode.

    to enable them, you need to got to Options and Settings -> Options->Direct Query and then check the Allow unrestricted measures in DirectQuery mode option.

    after that you need to restart powerbi and the rankx function should be available.