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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How do I create a card based on conditional formatting?

Hi Everyone,

 

I'm looking to take this table I've conditionally formatted and have a card next to it that shows the number of projects that are in the red. Please let me know if this is possible?

 

geleigh_1-1636495809345.png

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You can iterate over the projects and count which ones satisfy the rule for red.

 

Roughly like this:

SUMX ( VALUES ( Products[Product] ), IF ( [Hours Remaining] < 0, 1, 0 ) )

 

Modify the condition inside the IF to be whatever matches your rule for highlighting red.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

You can iterate over the projects and count which ones satisfy the rule for red.

 

Roughly like this:

SUMX ( VALUES ( Products[Product] ), IF ( [Hours Remaining] < 0, 1, 0 ) )

 

Modify the condition inside the IF to be whatever matches your rule for highlighting red.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.