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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Dicken
Continued Contributor
Continued Contributor

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
Continued Contributor
Continued Contributor

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
Continued Contributor
Continued Contributor

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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