Reply
hideakisuzuki01
Helper II
Helper II
Partially syndicated - Outbound

Definition and example of filter context

Hi, 

I am trying to understand what filter context is and have some questions becasue I see different examples and different explanations.

 

On sqlbi.com , filter context is explained as "The filter context is the set of filters applied to the data model before the evaluation of a DAX expression starts."

 

If this is the case, why is it that filter conditions in CALCULATE function are considered filter context ?  It is a part of DAX expression, isnt it ?

 

Also, if CALCULATE is considered filter context, why is FILTER fuction not considered filter context ? 

FILTER function can also add filter conditions just like CALCULATE, correct ?

 

 

2 REPLIES 2
hideakisuzuki01
Helper II
Helper II

Syndicated - Outbound

I read the article but it does not really answer my question. My question is still, why is CALCULATE considered filter context when the definition is 

"the set of filters applied to the data model before the evaluation of a DAX expression starts."

amitchandak
Super User
Super User

Syndicated - Outbound

@hideakisuzuki01 , Have you checked this blog?

http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)