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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ysherriff
Resolver II
Resolver II

Date hierarchy offset formula incorrect output at month, quarter and year level using Inscope

Hi all,

I am creating a date hierarchy offset for time intelligence but for some reason, it works at the day level but at the month , quarter and year level the offset function is not returning the proper value.

Can someone direct me to what the issue is?

Image #1 - Date hierarchy offset formula

ysherriff_0-1672428143686.png

 


Image #2 - Incorrect outuput at month, quarter and year level

ysherriff_3-1672427431816.png

 

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Your DAX is using 'Date'[CurrDayOffset] inside FILTER for all cases. It should match the period you're calculating for.

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

Your DAX is using 'Date'[CurrDayOffset] inside FILTER for all cases. It should match the period you're calculating for.

Duh. I am an idiot. Thanks Alexis. That is exactly the issue......

amitchandak
Super User
Super User

@ysherriff , In this video I have applied the logic of isinscope and offset, check that out, if that can help

 

Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

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

Thanks Amit. I have used your video as a starting point. It is saved in my favorites in Youtube.

 

Your videos are awesome learning tools.

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.