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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
elinevans1
Frequent Visitor

Count for same time period last year returning blank with page slicer

Hi, 

 

I've looked at a few posts about similar issues and tried all the solutions and I'm still getting a blank return when I'm expecting numbers. 

 

I have a feedback form that I want to count the number of responses I've recieved in a time period and beside it a comparison of how many people responded in the same time period last year. The time period is dependant on what the user selects on a date slicer. 

elinevans1_0-1692953279751.png

I have a date table with the date column the slicer. 

 

I have tried the following: 

 

Responses Last Year =
 CALCULATE( [Number of Responses],SAMEPERIODLASTYEAR(DateTable[Date]), ALL(DateTable[Date]))
 
I have also tried creating another column in the date table with the same date last year for each date and then calcating the number of responses and filtering by this column and I get similar results.
 
Is there another way to get this to work?
4 REPLIES 4
Anonymous
Not applicable

 

Hi @elinevans1 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

sergej_og
Super User
Super User

Hey @elinevans1 ,
can this help?

 

CALCULATE( 
    [Number of Responses],
    DATEADD(
      DateTable[Date],
      -1,
      YEAR)
)

 

Still the same issue 😞 

 

For my small data model it works fine.

sergej_og_0-1692972796781.png

Do you have values to sum for period -1 year in your data model for your specific usecase?
Maybe there are other influences.
I don´t know your model. Just set up one small to check the logic. It worked for me

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors