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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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