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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.