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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

How can i filter by a measure

Hi everyone, i have this table in Pbi: 

Gustavo98_0-1660167457216.png

First column is number of week. Seventh column is elasticity (measure), last column is a measure that i want to use to filter elasticity.

 

I want to calculate the average elasticity when "filter elasticidades grandes" measure = "Si considerar".

 

My average is now not considering the filter "Si considerar". 

 

Now, my measure to calculate the average elasticity is : 

Promedio elasticidad = AVERAGEX(VALUES(Combinar1[Numero semana]),[Elasticidad])
 
I suposse i have to change VALUES to other thing but i dont know which change i have to do.
 
Thanks.
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , One is use visual level filter

 

another one is to try a measure like

 

Promedio elasticidad = AVERAGEX(Filter( VALUES(Combinar1[Numero semana]) ,  [Si considered] <.1 ) ,[Elasticidad])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , One is use visual level filter

 

another one is to try a measure like

 

Promedio elasticidad = AVERAGEX(Filter( VALUES(Combinar1[Numero semana]) ,  [Si considered] <.1 ) ,[Elasticidad])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

What do you refer with visual filter?

Anonymous
Not applicable

Ty very much, i used your measure, but i had to change one thing:

 

Promedio elasticidad Pbi comn = AVERAGEX(Filter( VALUES(Combinar1[Numero semana]) , [Filter Elasticidades Grandes] = "Si considerar" ) ,[Elasticidad])
 
 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.