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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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])

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])

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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors