Can Grand Total in Pivot Table display beginning value instead of sum?

bigck2

Board Regular
Joined
Feb 20, 2014
Messages
147
Hello community,

I have a couple of Calculated Fields:

[Budget - Beg Date] := MIN( Fact_Budget_Occ[Month] )


[Budget - Beg Occupied Units] := CALCULATE( SUM( Fact_Budget_Occ[Beginning_Occupied_Units] ) , FILTER( Fact_Budget_Occ,
Fact_Budget_Occ[Month] = [Budget - Beg Date]
)
)

For this Field [Budget - Beg Occupied Units] it works except in the Grand Total Column it sums up the values across the row, and I'd like it to pull the value from the first date/month.


33b3m0k.png
[/IMG]




Is there a way to make this field behave this way?

Thanks,

Chris
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try
Code:
[Budget - Beg Occupied Units] :=
CALCULATE (
    SUM ( Fact_Budget_Occ[Beginning_Occupied_Units] ),
    Fact_Budget_Occ[Month] = MIN ( Fact_Budget_Occ[Month] )
)
 
Upvote 0
Thanks for the suggestion FranzV.

I tried, but when I tried to use that formula, and then check the formula I got this error message:

Code:
Calculation error in measure 'Budget_Occ'[Budget - Beg Occupied Units]: A function 'MIN' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
 
Upvote 0
Maybe adding FILTER()

Code:
[COLOR=#000000][Budget - Beg Occupied Units][/COLOR] :=
[COLOR=#0000ff]CALCULATE[/COLOR] (
    [COLOR=#0000ff]SUM[/COLOR] ( [COLOR=#000000]Fact_Budget_Occ[Beginning_Occupied_Units][/COLOR] ),
    [COLOR=#0000ff]FILTER[/COLOR]( 
        Fact_Budget_Occ,
        [COLOR=#000000]Fact_Budget_Occ[Month][/COLOR] = [COLOR=#0000ff]MIN[/COLOR] ( [COLOR=#000000]Fact_Budget_Occ[Month][/COLOR] )
    )
)
 
Upvote 0

Forum statistics

Threads
1,215,586
Messages
6,125,687
Members
449,249
Latest member
ExcelMA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top