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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
monsnap1
New Member

Count rows based on another column in Matrix for each Listed Project

Hi folks.

This has been bugging me for a while - Is it possible to count up rows with a certain 'state' and add it as a new column for each project as per the image below?

Many thanks

 

Capture.PNG

1 REPLY 1
marcelsmaglhaes
Super User
Super User

Hey @monsnap1 !
You should write a measure something like bellow.

 

If this post helps, please mark as solved.

 

Regards,
Marcel

 

to_do = CALCULATE(COUNT('Table'[State]), ALLSELECTED('Table'[Task]),'Table'[State] = "To Do")
done = CALCULATE(COUNT('Table'[State]), ALLSELECTED('Table'[Task]),'Table'[State] = "Done")

marcelsmaglhaes_0-1693317243068.png

 




Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors