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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.