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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Arentir
Resolver III
Resolver III

Dax Table ignoring context filter

Hey everyone,

 

 

I have an unexpected behaviour when I create a calendar table, I would like to understand what am I doing wrong or at least the reason of the behaviour.

 

I have created one date table and two measures: Minimum Date = Min(Date) and Maximum Date = Max(Date).

When filtering date with a slicer, the filter propagates to the table and measures (so far so good :))

But if I create a Calendar table as the following: CALENDAR(Minimum Date, Maximum Date), then the filter is ignored!

 

Here is a link to the PBI file and a screenshot in case it helps 🙂

 

Thanks!

 

https://1drv.ms/u/s!As5oZCclkGkWgSNz5mF8zTNNKvUu

 

image.png

 

1 ACCEPTED SOLUTION
affan
Solution Sage
Solution Sage

Hi @Arentir

 

The Calendar Function does not work with changing measures. It's behavior is somewhat similar to the calculated columns. It is created once and the sliced measures may keep on changing, so it is not possible to create it on this way.

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

View solution in original post

3 REPLIES 3
affan
Solution Sage
Solution Sage

Hi @Arentir

 

The Calendar Function does not work with changing measures. It's behavior is somewhat similar to the calculated columns. It is created once and the sliced measures may keep on changing, so it is not possible to create it on this way.

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

Thanks for the explanation. I though I could have tables that react to filter but I guess it is just not the way it works

 

HotChilli
Super User
Super User

You have no relationships in your model so your slicer only affects the dates from one table.  If you replaced the date in the slicer with the date from your created calendar table, then the slicer would affect that visual and not your original. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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