cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Multiplication measure total does not match with the values in the table

Hi,

 

I am trying to calculate a price impact for a Price Volume Mix model. I have prepared a sample file to show you what I am trying to achieve.

 

At row level, I am getting the correct result. At total level, it is not summing up the row level results.

 

2020-03-24_16-31-16.jpg

Here, Price impact totals 13,653.73 while it should be 1,330.59.

 

I would like to have a correct total amount, whatever dimension I am showing (Country, Cost Range and Product).

 

How can I achieve that?

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Multiplication measure total does not match with the values in the table

Check the attached solution thoroughly. It works for your case but you should check it in other configurations of filters.

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Multiplication measure total does not match with the values in the table

You might try altering the measure :

PriceImpactMeasure = SUMX('Table',[Price diff]*[Quantity2019])
Highlighted
Helper I
Helper I

Re: Multiplication measure total does not match with the values in the table

Hi @HotChilli ,

 

With the measure you suggested, the total matches with the sum of the results at row level. However, it is not consistent with the data in the rows.

 

PriceImpact.jpg

For example, for Brazil, I would expect to have Price diff * Quantity 2019 = 249.17 * 46 = 15,697.72. With the suggested measure, I get 873. 91 instead.

 

What I need is the results in column "Price Impact", but with the correct total (in this case, 2,355.35), not 1,330.59.

 

Thanks for your help!

Highlighted
Anonymous
Not applicable

Re: Multiplication measure total does not match with the values in the table

Check the attached solution thoroughly. It works for your case but you should check it in other configurations of filters.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Multiplication measure total does not match with the values in the table

By the way, your original table should be removed. I left it only because I wanted to see the calculations.

Best
D
Highlighted
Helper I
Helper I

Re: Multiplication measure total does not match with the values in the table

I'll try that and revert to you. Thanks for your time! I appreciate.

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

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

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.