Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I have a appened table based on yearly data pulled from SAP. (2020 \ 2021).
I have created a Date table which added a date hierarchy too.
in the slicer I can add Month from both the date hierarchy or "More fields".
Problem is that if i add the slicer from the date hierarchy - it shows duplicate values (i.e, January, January, Febuary, Febuary...)
and if i add the slicer from the "More fields" the "SamePeriodLastYear" function doesnot work.
Please Help 🙂
Solved! Go to Solution.
I found that the duplicate values in the month slicer and the error in the sameperiodlastyear function occur when in the pivot table there are both years added, so as a workaround i seperated the years into two pivot tables.
Thanks all for the assist!
I found that the duplicate values in the month slicer and the error in the sameperiodlastyear function occur when in the pivot table there are both years added, so as a workaround i seperated the years into two pivot tables.
Thanks all for the assist!
Did you create a relationship between the date table and your fact table?
Proud to be a Super User!
Paul on Linkedin.
Yes i did.
Are both the date fields set as date types? (You mentioned you created the date field by: "The yearly data is actualy pulled in a yearmonth format (i.e. 202001) and in the appened query i transformed it to date by adding 01 (Yearmonth & "01"). "
Both date fields must be date types: ie 01/01/2021 and not 20210101
Proud to be a Super User!
Paul on Linkedin.
yes they are, after adding the "01" i changed the column to date.
the function "sameperiodlastyear" works, but not when i add the month slicer... then i get the error.
Just to check, can you provide a screenshot of the date columns?
Also, why are you creating slicers from two different "Month" fields?
Proud to be a Super User!
Paul on Linkedin.
Clean your data. The fact that you see an entry twice does not mean this is the same entry. There are invisible characters at play here. Just standardize your entries.
I checked, data is clean.
The yearly data is actualy pulled in a yearmonth format (i.e. 202001) and in the appened query i transformed it to date by adding 01 (Yearmonth & "01").
then added the relationship to the date table.
I still get the error above.
any thoughts on that??? THANKS!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.