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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Dicken
Responsive Resident
Responsive Resident

Expression Evaluate , error

  I have a questiion as to how this works , for example; 

= Expression.Evaluate( "a", 
[ a =  List.Sum, b =  List.Average ]  ) 
( {2,3,2,2} )

this will work fine, and jsut change to "a" or "b", to change result but  neither of these work ? 

= Expression.Evaluate( "a", 
[ a =  List.AnyTrue , b =  List.AllTrue  ]  ) 
( {2,3,4,true, 2,2} )  

or 

= Function.Invoke( 
    List.AllTrue   , 
    { {2,2,2,2,2}} )

 so why does it  not work and how can I get it to do so, i wanted to just be able to change a parameter to a or b and change 
the result . 

Richard. 

1 ACCEPTED SOLUTION
Dicken
Responsive Resident
Responsive Resident

to answer my own question,   List.Any / All true expects a list of true / false values, not a list 
with a true or false in it.  this is why I had an error. 

View solution in original post

1 REPLY 1
Dicken
Responsive Resident
Responsive Resident

to answer my own question,   List.Any / All true expects a list of true / false values, not a list 
with a true or false in it.  this is why I had an error. 

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.

Top Solution Authors