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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Isfiltered is not working properly

Hi All,

 

I have used the Column chart Which showing Gross Margin % by Department and Items.

Default we need to show the Department level and then drill down to Item level.

We have also added the Lower and Upper bound as Tooltip, but on one condition, the lower and upper bound can show only at Item level and not at the department level.

So I have used the following measure for upper and lower

1. Lower = IF(IS FILTERED(Items[Items]), CALCULATE([Lower Bound],ALL(Items[Items])))  (same for the Upper)

 

The output showing correctly as expected, but the problem here is that when I have select any item from the Items slicers, the upper and lower values we can see at the department level also and which is not expected.

 

Please help me on this, the lower and upper values only shown in Items level and not in department level

lower.png

 

Please help me on this, the lower and upper values only shown in Items level and not in department level

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All, @Pragati11,

 

I have solved this issue, we can use Hasonefilter instead of isfiltered

I have used the following measure

 

Lower = IF(HASONEFILTER(ItemsCost[Items]), CALCULATE([Lower Bound],ALLSELECTED(ItemsCost[Items])))
 
and it is working.
 
Thanks.

View solution in original post

7 REPLIES 7
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Just convert your calculations for LOWER as follows:

 Lower = IF(IS FILTERED(Items[Items]), CALCULATE([Lower Bound], ALLSELECTED(Items[Items])))

 

Do same for UPPER as well. (Replace ALL with ALLSELECTED in your dax expression)

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi @Pragati11,

 

Thank you for the quick reply,

 

I am changing the measure as you suggested, but still, I can see the Lower and Upper tooltip in Department level when selecting some items from Items slicers

lower.png

Hi @Anonymous ,

 

Try this chnage:

Lower = IF(IS FILTERED(Items[Items]), CALCULATE([Lower Bound], ALLSELECTED(Items)))

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi @Pragati11,

 

No, still I can see the tooltip at department level only when Items selected from Items slicer.

 

Thanks,

Hi @Anonymous ,

 

Looks like I will need to see your data.

Is it possible to share your pbix file?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable
Anonymous
Not applicable

Hi All, @Pragati11,

 

I have solved this issue, we can use Hasonefilter instead of isfiltered

I have used the following measure

 

Lower = IF(HASONEFILTER(ItemsCost[Items]), CALCULATE([Lower Bound],ALLSELECTED(ItemsCost[Items])))
 
and it is working.
 
Thanks.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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