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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
100tsky
Helper I
Helper I

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
Helper I
Helper I

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
Helper I
Helper I

just tested with dax studio

 

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

100tsky
Helper I
Helper I

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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