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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Solution Sage
Solution Sage

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

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
Solution Sage
Solution Sage

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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