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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
100tsky
Frequent Visitor

Too many arguments were passed to the ALLSELECTED function. The maximum argument count for the funct

Please,

why I get this message Too many arguments were passed to the ALLSELECTED function. The maximum argument count for the funct with a measure like CALCULATE ( MAX()ALLSELECTED( T, T[Col1],  T[Col2] )

 

https://learn.microsoft.com/en-us/dax/allselected-function-dax

ALLSELECTED([<tableName> | <columnName>[, <columnName>[, <columnName>[,…]]]] )

1 ACCEPTED SOLUTION

@100tsky 

Ok then use separate ALLSELECTED on for each column

View solution in original post

6 REPLIES 6
100tsky
Frequent Visitor

19-Sep-22 8:25:03 PM Query (5, 73) Too many arguments were passed to the ALLSELECTED function. The maximum argument count for the function is 1.

@100tsky 

Ok then use separate ALLSELECTED on for each column

thank you

but why in ms documentation said ... ALLSELECTED([<tableName> | <columnName>[, <columnName>[, <columnName>[,…]]]] ) ?

100tsky
Frequent Visitor

just tested with dax studio

 

EVALUATE
{
    CALCULATE (
        MAX ( Vintaz[start_date] ),
        ALLSELECTED ( Vintaz[start_date], Vintaz[vintaz_mnth] )
    )
}

100tsky
Frequent Visitor

Thank you, but CALCULATE ( MAX()ALLSELECTED(  T[Col1],  T[Col2] ) do not work

 

tamerj1
Super User
Super User

Hi @100tsky 
Table Name OR Column Names. You Cannot have both.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.