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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
hideakisuzuki01
Helper II
Helper II

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

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

@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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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