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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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