Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Sanskruti
Helper II
Helper II

When using between slicer data doesn't show.

Hello,

I have created a table which shows year month, order quantity and previous year order quantity.

Sanskruti_0-1684498648050.png

And i have added a date slicer.
But when i change the date with the help of slicer i cant see the previous years data.

Sanskruti_1-1684498787155.png

And when i use the dropdown slicer it shows me the previous year.

Sanskruti_2-1684498840043.png

Why i'm facing this problem. 
And how can i show previous year when i'm using between slicer. (My client want between slicer).

Thank you. 

2 REPLIES 2
amitchandak
Super User
Super User

@Sanskruti , Make sure you have a date table and slicer, visual and measure using date table columns

 

Try measure like

 

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))


Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for replying,
But i'm using same expression.

"PY OQ = CALCULATE(SUM(Aw_TotalSales[OrderQuantity]),dateadd('AW_Calendar'[Date].[Date],-1,Year))"

But still when i use slicer and select 2017 i cant see 2016 data.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors