Forum Discussion

DLamarche's avatar
DLamarche
Icon for Helper I rankHelper I
6 years ago
Solved

Need help with a simple formula / measure

Hello all, I am new to BI but I'm working hard to learn with my own data. I've been trying something that I thought would take me 30 mins and 2.5 hours later I don't understand why I dont't get it r...
  • PaulDBrown's avatar
    6 years ago

    DLamarche 

     

    pity the result from PBI isn’t correct: you would be very rich!

    try this:

    Sales Amount = SUMX(tblCalls,  SUM(tblCalls[CallLength]) * SUM(tblCalls[CallRateApplied])).

     

  • FrankAT's avatar
    6 years ago

    Hi Daniel,

    use the following measure:

     

    =SUMX(tblCalls, tblCalls[CallLength] * tblCalls[CallRateApplied])

     

    The function SUMX() iterates through the table tblCalls and row by row it multiplies CallLength by CallRateApplied. At the end it sums up all computed multiplications.

     

    FrankAT

  • DLamarche's avatar
    DLamarche
    6 years ago

    Thanks to both of you guys. One day I promise that when I'll be better at that stuff I will return the favour (Aussie spelling).

    I have to look more in depth ... again ... about the SUMX() function.

    Thanks a bunch again.   8-)