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
Anonymous
Not applicable

Which function to use?

I am trying to figure out which combination of count/filter functions to use to get my data to look at a specific date range for a job and return a count of how many times the amount is <= 25.00.  Does anyone know what measure to use?  

 

My data looks like this:

 

Date             Job    Amount

1/1/2016       A         24.00

8/1/2016       A         16.00

3/1/2017       B          40.00

7/1/2017       B          23.00

11/1/2017     B          19.00

4/1/2018       B           5.00

9/1/2018       C          40.00

3/1/2019       C          22.00

 

What I want it to return is:

Job   Amount Less than 25

A              2

B              3

C              1

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

HI @Anonymous 

 

Try following

 

Measure=
CALCULATE ( COUNTROWS ( TableName ), TableName[Amount] <= 25 )

Regards
Zubair

Please try my custom visuals

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

HI @Anonymous 

 

Try following

 

Measure=
CALCULATE ( COUNTROWS ( TableName ), TableName[Amount] <= 25 )

Regards
Zubair

Please try my custom visuals

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.

Top Solution Authors