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

View all the Fabric Data Days sessions on demand. View schedule

Reply
MODUser
Frequent Visitor

PeriodFilterTable PriorYear

Found a PeriodFilterTable to which I needed to add Prior Year. Added code is giving me the full prior year and the first day of the current year...I need only the prior year dates to output. Please advise. 

 

MODUser_1-1709915715103.png

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Before the last comma insert  "-1"

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Before the last comma insert  "-1"

That's what I had tried, but didn't work...then I realized, after recieving your response that TodaysDate was not just a date, but a datetime zone so I used...

 

{"Prior Year",
Date.AddYears(Date.StartOfYear(TodaysDate),-1),
Date.StartOfYear(TodaysDate) - #duration(0,0,1,0),
8}

 

And that worked. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors