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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AlexaderMilland
Helper III
Helper III

Offset function not working with direct slicers

I can't quite graps why this issue is happening.
Basically my offset function return blank values when im applying a slicer. 
It's only doing this when the slicer is directly part of the offset function, so i can easily apply a filter year or so. 
I understand if picked non-consecutive weeks, but I don't? 

AlexaderMilland_0-1695812344355.png

AlexaderMilland_1-1695812367902.png

 

Orders - Offset % =

CALCULATE([Orders],OFFSET(-1,ALLSELECTED('Calendar'[WeekName],'Calendar'[WeekKey]) ,OrderBy('Calendar'[WeekKey],ASC)))
1 REPLY 1
lbendlin
Super User
Super User

Should work.  Can you post a sample pbix?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.