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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rustami4
Helper II
Helper II

Filter measure

Guys, tell me please how does the formula for FILTER look? Can't understand how it works. I need to filter the count of the definite indicator from the column. 

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Rustami4,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

Hi @Rustami4,

 

Could you please post a sample of you data in TEXT mode? An example is an easy way to understand how Filter will work. Usually, Filter will work with Calculate that is used to change the evaluation context of a formula. 

 

For example, this measure is quite sample. It will return the number of 'Product'[Color].

Measure =
COUNT ( 'Product'[Color] )

But this formula will return the number of red of 'Product'[Color] only.

MeasureWithFilter =
CALCULATE (
    COUNT ( 'Product'[Color] ),
    FILTER ( 'Product', 'Product'[Color] = "Red" )
)

Filter measure.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

If you use calculate in conjunction with a filter it is fairly straightforward e.g.

 

Calculate (<Calculation>, Filter( <table to filter>, <logic to filter the table>))

 

I'm not sure sure from your post exactly what youre trying to achieve however.

 

Thanks,

 

Will

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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