Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

[DAX] MIN function rejects single column table as argument

Hi all! I was wondering if [Single-Column Table] = [Column] for Power BI? I'm trying to use the MIN function on a table I create dynamically with TOPN and it gives me the "The MIN function only acc...
  • PhilipTreacy's avatar
    4 years ago

    Hi Anonymous 

     

    Use MINX like this example

     

    MINX(SELECTCOLUMNS(TOPN(2,'Submission Date', 'Submission Date'[Submission Date],DESC),"Index",[Index]), [Index])

     

     

    Regards

     

    Phil