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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Changing filter context ISO dates

Hi, 

 

Have a date table with ISO weekyear and normal year. The purpose with the ISO weekyear is to get the values of week 1 into the same year/start year. When week 1 starts at the end of december in a certain year this should then be counted in the "new" year.
In a line graph I would like to have the Year to Date value and drilldown from year to months and week.

For the year and month I would like to have the YTD from normal year but when drilling down to week I need the ISO weekyear.

I use the ISO weekyear in the legend so I get all the years in one graph. 
Since I have the ISO weekyear in the legend and this works as a filter, is it possible to change this filtercontext into normal year when I drilling up on months and year (filter context months and year)???

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , having a week in Hierarchy is bit challenging.

But see if isfiltered/hasonevalue or isinscope can help you

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

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
Anonymous
Not applicable

Hi @Anonymous,

Currently, power bi does not contain any feature to change display slicer items, you can use common date value fields to replace but the filter effect will be applied on replaced fields.

I'd like to suggest you submit an idea for your requirement.
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.