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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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