Forum Discussion

lingvistt's avatar
lingvistt
Frequent Visitor
7 years ago
Solved

New measure while modeling shows blank rows

Hi all,   I have a table with activities of customers, profit and cost for each activity. Based on 'Table 1' I calculated new measure 'ROI'='Profit'/'Cost'. Then I want to group activities using a...
  • Mariusz's avatar
    Mariusz
    7 years ago

    HI lingvistt 

     

    Try the Measure below. 

    Measure = 
    VAR _div = DIVIDE( SUM( 'Table'[Profit] ), SUM( 'Table'[Cost] ) )
    RETURN IF( NOT ISBLANK( _div ), _div + 1 ) 

    Hope this helps!

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    Mariusz Repczynski