Forum Discussion

Megadeth's avatar
Megadeth
Frequent Visitor
8 years ago
Solved

Measure with a factor table.

Hi! 

 

I´ve created this table containing all my my processes and corresponding factors. I want to use factors for each process beacuse when im forecasting i tend to see trends changing on process level. 

 

So I´ve created my measure: 

 

"ForeCastWithFactors = [Forecast] * CALCULATE(SUMX('ProcessFactors'; 'ProcessFactors'[ProcessFactor]))"

 

and row by row it works as expected, it increases the forecast by the factor (they are all 1.07 at the time) 

However the problem is the total. its Obviously calculating the sum of all the factors x sum of forecast. and thus its not really usable in a bar chart for example. 

 

Anyone know how to rewrite this so it works? 

 

 

FactorTable

 

  • I guess it is this. 

     

    ForeCastWithFactors =  SUMX('ProcessFactors'; [forecast] * ‘ProcessFactors'[ProcessFactor])

     

    Maybe even this

     

    ForeCastWithFactors =  SUMX(values('ProcessFactors'[processfactor]); [forecast] * ‘ProcessFactors'[ProcessFactor])

2 Replies

  • MattAllington's avatar
    MattAllington
    Community Champion

    I guess it is this. 

     

    ForeCastWithFactors =  SUMX('ProcessFactors'; [forecast] * ‘ProcessFactors'[ProcessFactor])

     

    Maybe even this

     

    ForeCastWithFactors =  SUMX(values('ProcessFactors'[processfactor]); [forecast] * ‘ProcessFactors'[ProcessFactor])

    • Megadeth's avatar
      Megadeth
      Frequent Visitor

      I cannot thank you enough, altough i feel very stupid for that simple sollution :)

       

      Thanks again! SUMX('ProcessFactors'; [forecast] * ‘ProcessFactors'[ProcessFactor]) worked like a charm.