Reply
DroiD03
Frequent Visitor

IsFiltered() does not work as a column

Hi,

 

I am trying to achieve a simple functionality using ISFILTERED() DAX function. When I use it in calculated measure it works but when I am creating a Calculated column it doesn't.

T_C = IF(ISFILTERED('Dim Date'[MS Fiscal Year Name]),1,0)  <-Column code

T_M = IF(ISFILTERED('Dim Date'[MS Fiscal Year Name]),1,0)  <-Measure code

 

1.PNG

 

 

 

 

 

 

 

 

 

Why it is like that? Can someone explain please.

 

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @DroiD03

You can't filter calculated columns by slicers.

Calculated columns are only calculated once - when you load/refresh your data model. After that, they contain fixed, static values that can not respond to slicers.

To achieve your goal, you will need to use measures, not calculated columns. 

 

See differences below

calculated column VS measures

 

Best Regards

Maggie

 

View solution in original post

2 REPLIES 2
D_Khandelwal
Frequent Visitor

Hello @DroiD03@v-juanli-msft 

 

Is the above thing possible now in march 2023 version of Power BI or is there any work around for this ??

 

Thanks,
Dinky 

v-juanli-msft
Community Support
Community Support

Hi @DroiD03

You can't filter calculated columns by slicers.

Calculated columns are only calculated once - when you load/refresh your data model. After that, they contain fixed, static values that can not respond to slicers.

To achieve your goal, you will need to use measures, not calculated columns. 

 

See differences below

calculated column VS measures

 

Best Regards

Maggie

 

avatar user

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.

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