Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
tomdiben
New Member

[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 accepts a column reference as an argument." altough I made sure I'm sending a single column table as an argument.

tomdiben_0-1635871823196.png

This is the data it's built upon:

tomdiben_1-1635871865421.png

 

Thanks!!
Thomas

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @tomdiben 

 

Use MINX like this example

 

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

 

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

3 REPLIES 3
PhilipTreacy
Super User
Super User

Hi @tomdiben 

 

SELECTCOLUMNS returns a table but MIN requires a column (or a scalar value) as an argument.  MINX takes a table as an argument then works through each row.

 

So even though you are creating a table, consisting of just one column, using SELECTCOLUMNS, it's still creating a table, and MIN doesn't like that.

 

MIN – DAX Guide

MINX – DAX Guide

SELECTCOLUMNS – DAX Guide

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @tomdiben 

 

Use MINX like this example

 

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

 

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.