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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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