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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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