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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply

Error: Cannot apply the operator to the types Function and Function

Hi, good people 

I think my problem is not too complex, but I don't understand what is going on ...

 

Look at this formula 

 

felipecarvalho_1-1631234249007.png

 

At the moment the last Column is giving me the expected result.  

 

Focus on the 2 variables that I have in the second and third lines. I "Rename" to "A" and "B" in the picture to make it easier to explain.

On the picture above, I am returning  B, and the result is Fine (type is null or a number).  If I return A the result is fine too.

 

But I want to return B -A. 

 

But I Get this error:

 

felipecarvalho_2-1631234617767.png

 

How can I solve this?

 

Thanks for all your help!

 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

2 REPLIES 2
wdx223_Daniel
Community Champion
Community Champion

wdx223_Daniel_0-1631237312895.png

 

@wdx223_Daniel 

 

I use your suggestion like this and it worked:

 

felipecarvalho_0-1631272347676.png

 

I think I still do not fully understand the "each" and (_).... and why they make it work...

Can you elaborate?

 

Regardless of that, I will already mark your answer as the solution. 

Thank you very much!

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

Top Solution Authors