cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## 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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

## Re: Measure with a factor table.

I guess it is this.

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

Maybe even this

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

* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
2 REPLIES 2
Highlighted

## Re: Measure with a factor table.

I guess it is this.

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

Maybe even this

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

* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Highlighted
Frequent Visitor

## Re: Measure with a factor table.

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.

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

#### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

#### Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

#### Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors