DAX Measure issue with annual figures

BKNewton29

New Member
Joined
Sep 17, 2010
Messages
30
Hi,

I'm trying to create a measure that will return the annual income figure in every month of that year.
The current year is returning the numbers as I expected (see image below). However the prior year numbers are not working as planned and are only returning the totals of the numbers that are sat in the same months as the current year.

The two measures created are as below. I suspect the issue is realted to the measure only returning months that exist in the current year. Any help would be appreciated.

FX Renewable Income Annual PY

=SUMX(values('Table Data'[ContRef|CommProd]),
CALCULATE([FX Renewable Income],PREVIOUSYEAR('Calendar'[Date]),
ALLSELECTED('Calendar'[Year])-1,
ALL('Calendar'[MonthNumberOfYear])))



FX Renewable Income Annual

=SUMX(values('Table Data'[ContRef|CommProd]),
CALCULATE([FX Renewable Income],
ALLSELECTED('Calendar'[Year]),
ALL('Calendar'[MonthNumberOfYear])))



Capture.JPG
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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