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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
ChrisTof
Frequent Visitor

Filter visual table with a measure not dynamically updated

hi,

I'm using the visual table below with this measures.

 

Number of daysType
1170Red
804Red
511Green
355Orange
346Orange
288Green
274Green
268Red
  
12Red
24Green
126Green

 

 

AverageDays = 
var a=SUMX(ALLSELECTED('Table'),'Table'[Number of days])
var b=COUNTROWS(FILTER(ALLSELECTED('Table'),'Table'[Number of days]<>BLANK()))
return a/b
Measure = IF(MAX('Table'[Number of days])>'Table'[AverageDays],1,0)

 

I use "Measure" to filter my visual table to display values only greater than the average.

ChrisTof_0-1681457863872.png

 

ChrisTof_1-1681457907734.png

 

thanks to @Anonymous for the solution but i have a question.

 

When i've filtered the visual, i get this :

Number of daysType
511Green
804Red
1170Red

 

Now, i want to let the users to be able to filter by type using slicer. I mean when they select 'Red', they should get this :

Number of daysType
804Red
1170Red

 

But in fact they get this because when they use the slicer 'type' the measure 'AverageDays' is automatically updated. So the AverageDays was 380 and is now 987 and it displays only values greater than this.

Number of daysType
1170Red

 

I've tried using 'modify interactions' for slicer to set 'none' for the measure 'AverageDays' but still not working.

How can i do so the measure isn't updated when using the slicers ?

Thanks a lot again !

1 ACCEPTED SOLUTION

5 REPLIES 5
ChrisTof
Frequent Visitor

I'm a beginner so if you could give me some examples that would be great please.

Thanks again

lbendlin_0-1681724667627.png

see attached

 

lbendlin
Super User
Super User

Remember that the measure is recomputed each time you interact with the visual. So when you remove Green from the filter context your average value shifts and that then results in only one of the Reds showing. It's working as designed.

I agree with you that it's working as designed but it doesn't respond to my use case.

So how can i do that ?

Use disconnected tables and create measures that can serve as visual filters.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.