SAMEPERIODLAST Year some items are missing if current year is selected

mrchonginhk

Well-known Member
Joined
Dec 3, 2004
Messages
679
In my data, 2018 includes items A,B,C only (eg values 10, 20, 30)
2017 contains data for item A, B, C, D (eg values 15,25,35,45)

In my Matrix report in PowerBI, I am showing 3 columns:-

Item, 2018Values, 2017Values

2017Values is a DAX measure created using SAMEPeriodLastYear.

Then I have a filter selecting Year.

When I select year 2018 in slicer,
2017Value (ie lastyear) column is showing correctly.

However, what is missing is item D is not in my report. Now it is shown as

Item , 2018 , 2017
===============
A , 10 , 15
B, 20, 25
C, 30, 35

The problem I have now is D actually is a 2017 item but it is not showing in the above Visual. What I need is:-

Item , 2018 , 2017
===============
A , 10 , 15
B, 20, 25
C, 30, 35
D, 0, 45

What can I do to ensure D is also shown while year 2018 is selected ?
Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Is the value actually zero or null?
Do you have any value filters in the Pivot or the Query that exclude zero or null values?
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,058
Latest member
oculus

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