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
Morrison
Helper I
Helper I

Count Value with condition

Hello,

how can i replicate the result of the table below.

 

I need to count the number of store for each rating with a filter on only the stores that have first and second ride. 

 

Morrison_0-1668767274268.png

 

1 ACCEPTED SOLUTION
serpiva64
Super User
Super User

Hi,

I got this with the attached pbix

serpiva64_0-1668773853475.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

View solution in original post

3 REPLIES 3
shreyamukkawar
Resolver II
Resolver II

Hi @Morrison ,

 

1. Create new column as 

Column = IF( 'SAMPLE'[SCORE]="ENOUGH","ENOUGH","INSUFFICIENT")
2.Create new column as 
LAP1 = IF('SAMPLE'[LAPS]=1 ,COUNT('SAMPLE'[STORES]))
LAP2 = IF('SAMPLE'[LAPS]=2 ,COUNT('SAMPLE'[STORES]))
 
shreyamukkawar_0-1668774808797.png

 

Best Regards,

Shreya Mukkawar

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thx all for the support 🙂

serpiva64
Super User
Super User

Hi,

I got this with the attached pbix

serpiva64_0-1668773853475.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

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