Forum Discussion
Anonymous
5 years agoNot applicable
[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...
- 5 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
PhilipTreacy
Super User
5 years agoHi Anonymous
Use MINX like this example
MINX(SELECTCOLUMNS(TOPN(2,'Submission Date', 'Submission Date'[Submission Date],DESC),"Index",[Index]), [Index])
Regards
Phil
Anonymous
5 years agoNot applicable
That works, thanks Phil!
Are you able to tell why the MIN function was rejecting my single column table? And why it works better with MINX?
Thanks!
Thomas