Forum Discussion

ajohn1's avatar
ajohn1
Advocate I
7 years ago

Table Sum is incorrect.

if I were to take out my first 'if' statement "(if(value1-value2 <= 0, 0,)" the value comes out to be -92. But I'm replacing its value with 0. So why is calculating with the -92.

 

5 Replies

  • dedelman_clng's avatar
    dedelman_clng
    Community Champion

    PowerBI tables/matrixes don't sum up the same way that Excel does.  Instead it recalculates the measure in the current context, which is ignoring the DLIN, DSUB, etc context.  It is calculating in the "Louisiana-Customer View" context.

  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi ajohn1,

     

    If it is conveninent, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

     

    Best  Regards,
    Cherry

    • ajohn1's avatar
      ajohn1
      Advocate I

      We found a work around, by appending a duplicate of our time and some other magic. To much to explain at the moment.

      • v-piga-msft's avatar
        v-piga-msft
        Resident Rockstar

        Hi ajohn1,

         

        If you solved your problem, please accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

         

        If you still need help, please feel free to ask.

         

        Best  Regards,

        Cherry