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

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
Super User
Super User

2 REPLIES 2
wdx223_Daniel
Super User
Super User

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

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.