Forum Discussion

elkjoperik's avatar
elkjoperik
Icon for Helper II rankHelper II
9 years ago

Divide negatives with positve

Hi,

I have a problem I hope some smart people here can solve! :) 

 

Example:

StoreGross Margin resultGross Margin BudgetIndex Budget
New York-266-52950 %
Chicago360155232 %
Florida-37-20518 %
Alaska-146-62235 %
Total-89-64114 %

 

If you look at New York, we're 50% below the budget loss, i.e index 150% positive index. How do I solve the 4 scenerios in Power BI when it comes to divide postives and negatives? 

6 Replies

  • dedelman_clng's avatar
    dedelman_clng
    Icon for Community Champion rankCommunity Champion

    What formula/logic are you using to get the "Index Budget" column currently?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi elkjoperik,

     

    According to your description, the formula logic seems like original percent(100%) + (diff between Budget and result).

    If this is a case, you can try to use below formula:

     

    Result = 1+(1-[Index Budget])

     

     

    In addition, if above not help, can you share some detailed information about the calculation?

     

    Regards,

    Xiaoxin Sheng

     

    • elkjoperik's avatar
      elkjoperik
      Icon for Helper II rankHelper II

      Many thanks for the replies.

       

      I'm using "Gross Margin result" / "Gross Margin budget"

       

      In my head, the results should be for Index Budget:

       

      New York:  150%

      Chicago:  232%

      Florida:  18%

      Alaska:  235%

      Total:  720%

       

      How to create a formula that solves the 4 scenarios you have:

      1. Positive / positive

      2. Positive / negative

      3. Negative / negative

      4. Negative / positive

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi elkjoperik,

         

        I still not clear how did you get the result "new york" = 150%, can you share some detail steps?

         

        Regards,
        Xiaoxin Sheng