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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
admin11
Memorable Member
Memorable Member

How to create measure for ROI=REV/Total ?

Hi All

admin11_0-1612973549882.png

 

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @admin11 ,

 

Try to use the following measure for NP%:

 

NP % =
DIVIDE (
    [SUM_YTD REV&COGS&EXP&OTH],
    CALCULATE (
        [SUM_YTD REV&COGS&EXP&OTH],
        FILTER ( _PNL_Table, _PNL_Table[REV&COGS] = "REV" )
    )
)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

4 REPLIES 4
v-deddai1-msft
Community Support
Community Support

Hi @admin11 ,

 

Try to use the following measure for NP%:

 

NP % =
DIVIDE (
    [SUM_YTD REV&COGS&EXP&OTH],
    CALCULATE (
        [SUM_YTD REV&COGS&EXP&OTH],
        FILTER ( _PNL_Table, _PNL_Table[REV&COGS] = "REV" )
    )
)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

admin11
Memorable Member
Memorable Member

@admin11 , Please find if the attached file can help

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Thank you for sharing. 

My Problem Statement :

How to compute ROI = REV/Net Profit=0.59 is correct using Amit expression below :-

RoI 1 = DIVIDE(CALCULATE([SUM_YTD REV&COGS&EXP&OTH] , FILTER(_PNL_Table,_PNL_Table[REV&COGS] = "REV")),[SUM_YTD REV&COGS&EXP&OTH])

But now i like to compute NP % = Net Profit/REV , I using below expression :-

RoI 3_ = DIVIDE(CALCULATE(

FILTER(_PNL_Table,_PNL_Table[REV&COGS] = "REV")

,

[SUM_YTD REV&COGS&EXP&OTH]

),

FILTER(_PNL_Table,_PNL_Table[REV&COGS] = "REV")

)

 

I get error msg :-

A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

 

May i know how to clear the error msg ?

admin11_0-1612996072144.png

My PBI file :-

https://www.dropbox.com/s/l7dqafwlowkj45g/GL_ISDN_v009%20ROI%20solution%20ask%20AGAIN.pbix?dl=0

Paul

 

 

 

 

 

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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
Top Kudoed Authors