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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
admin11
Memorable Member
Memorable Member

My Ration for Rev vs Net Profit expression return -96% how to make it display 4% ?

Hi All

 

I want to compute Ration for Net Profit vs Revenue.

I have 2 field name :-

YTD_REV

YTD_NET PRO 

 

I create an expression below :-

R_EXP_REV = (if(isblank( divide(
[_YTD_NET PRO]
-
[_YTD_REV_]
,
[_YTD_REV_]
)),1, divide(
[_YTD_NET PRO]
-
[_YTD_REV_]
,
[_YTD_REV_]
)))
 
Above expression return -96% , which is wrong. i use excel to compute the answer = 4%
 
195000
5210000
0.037428

 

Can some one advise me how to modify the expression , so that i can get 4% ?

 

admin11_0-1626746177746.png

Since 100-96 = 4

 

May i know how to insert 100 infront of the expression.

 

Paul

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

R_EXP_REV = coalesce(divide([_YTD_NET PRO],[_YTD_REV_]),1)

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

R_EXP_REV = coalesce(divide([_YTD_NET PRO],[_YTD_REV_]),1)

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

Thank you very much , it work fine now. Look like you know most of my problem.

Paul

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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