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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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