SUMX and SAMEPERIODLASYTEAR

DickyMoo

New Member
Joined
Mar 8, 2016
Messages
32
Hello,

I have a measure that presents figures correctly for a financial pack:

Actuals - I&E Sign = IF( HASONEFILTER( 'Account Codes'[Account Sub Category] ) ,
SUMX( 'Account Codes' , [Actuals] * 'Account Codes'[I&E Sign] ) ,
[Actuals]
)

I then want to show the prior year version of this, so created:

Prior Year YTD Actuals - I&E Sign = CALCULATE([YTD Actuals - I&E Sign] , SAMEPERIODLASTYEAR( 'Calendar'[Date] ) )

but it shows blank when I filter by 'Account Codes'[Account Sub Category].

I am using the same method for lots of other measures and they work fine, it's just when using time-intelligence that it seems to fall over.

Does anyone know why this might be?

Thanks
Rich
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi Matt,

YTD Actuals - I&E Sign = IF( HASONEVALUE( 'Calendar'[Financial Year] ), TOTALYTD( [Actuals - I&E Sign] , 'Calendar'[Date] , "30/06" ) , BLANK() )

(fyi - I am filtering the page to a single Financial Year).
 
Upvote 0
I don't think you need the HASONEVALUE in this formula, and my guess is that this could be the cause (just a guess).
 
Upvote 0
That didn't do the trick unfortunately.

I've replaced all my 'I&E Sign' formulas with equivalents of the SUMX shown originally and that has worked. I wanted to avoid that for simplicity but never mind.

Thanks for the suggestion Matt.
 
Upvote 0

Forum statistics

Threads
1,216,115
Messages
6,128,915
Members
449,478
Latest member
Davenil

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