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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jackj
Helper I
Helper I

Count based on criteria

I have what I believe is a very simple problem but for some reason I can't quite solve it.  I have a measure that is calculating the total sales, all time, by store location:

 

DBA          Total Sales

Store 1      $1,000

Store 2      $975

Store 3      $850

Store 4      $625

Store 5      $980

 

I want to create a card that shows the count of locations that have total sales >$975.  How can I do this?  Thanks in advance for any help on this!

2 ACCEPTED SOLUTIONS
samdthompson
Memorable Member
Memorable Member

Hello, this should swork:

 

2021-05-06_11-27-40.jpg

// if this is a solution please mark as such. Kudos always appreciated.

View solution in original post

Jihwan_Kim
Super User
Super User

Hi, @jackj 

Please check the below.

Please put the below measure into the card visualization.

 

Picture1.png

Stores Count >975 =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( 'Table', CALCULATE ( SUM ( 'Table'[Total Sales] ) ) > 975 )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @jackj 

Please check the below.

Please put the below measure into the card visualization.

 

Picture1.png

Stores Count >975 =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( 'Table', CALCULATE ( SUM ( 'Table'[Total Sales] ) ) > 975 )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


samdthompson
Memorable Member
Memorable Member

Hello, this should swork:

 

2021-05-06_11-27-40.jpg

// if this is a solution please mark as such. Kudos always appreciated.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.