Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
AN2021
Frequent Visitor

Change rows will get different result

Hi, I wonder why when I change the row I will got different result for my measure.

I have a table like this:

AN2021_0-1629530383689.png

I create new measure:

Total Market Value at Scenario 0 =
CALCULATE(
SUM(Sheet2[Market Value])
,Sheet2[Scenario] = 0
)
In my visualization I will got different result if I change my row as below: It correct if I use Scenario as row, but incorrect if I change it to Scenario Desc.
AN2021_1-1629530456219.png

Note: I cannot add filter by Scenario Desc as some Scenario can have different Scenario Desc.

My purpose is to add column or measuer which always show the total of Market Value form Scenario = 0.

 

Here I attached my pibx files in google drive

https://drive.google.com/file/d/1da4Hb08-4qbo2YwO9far5ouckRO-rSuu/view?usp=sharing

 

In case you cannot downlload from drive:

https://gofile.io/d/0xixDU

1 ACCEPTED SOLUTION

@AN2021 

 

That 23 is correct, but If you want to show 23 for all rows, when you add Scenario Desc to the matrix, just add REMOVEFILTERS(Sheet2[Scenari Desc] to your calculation.

 

Try this measure:

 
 

 

Total Market Value at Scenario 0 =
CALCULATE (
    SUM ( Sheet2[Market Value] ),
    Sheet2[Scenario] = 0,
    REMOVEFILTERS ( Sheet2[Scenari Desc] )
)
​

 

 

VahidDM_0-1629534004484.png

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_1-1629534016334.png !!

View solution in original post

3 REPLIES 3
VahidDM
Super User
Super User

Hi @AN2021 

 

It seems all Scenarios with Zero values belong to Base Case, and because of that, it shows 23 just for that line Item when you add Scenario Desc to the row .

The total value in both Matrix is correct.

 

I could not download your file, so please share it on https://gofile.io/

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1629532679392.png !!

 

 

I still dont get it, here I reupload my files

https://gofile.io/d/0xixDU

My Data is look like this: When I use Scenario the result its correct, but when I use Scenario Desc, result is incorrect.

AN2021_0-1629533577394.png

 

@AN2021 

 

That 23 is correct, but If you want to show 23 for all rows, when you add Scenario Desc to the matrix, just add REMOVEFILTERS(Sheet2[Scenari Desc] to your calculation.

 

Try this measure:

 
 

 

Total Market Value at Scenario 0 =
CALCULATE (
    SUM ( Sheet2[Market Value] ),
    Sheet2[Scenario] = 0,
    REMOVEFILTERS ( Sheet2[Scenari Desc] )
)
​

 

 

VahidDM_0-1629534004484.png

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_1-1629534016334.png !!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors