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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.