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
geleigh
Frequent Visitor

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
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
Top Kudoed Authors